No app can publish on behalf of the user without you having the action of the user himself requesting it.
This since 2012 or 2013 no longer works, EXCEPT for applications that prove that user action is not feasible, such as Smart Tvs, which offer a shortcut to share what you are watching, but this is only feasible for DEVICES, WEB/DESKTOP applications must make the user generate authentication tokens, which have limited validity and restrictions of what can be done via API.
Sorry for the bad news, is that circulate still many examples of how to integrate with the old Docs!