No app can publish on the user's behalf without you having the user's own action requesting it.
This since 2012 or 2013 does not work EXCEPT for applications that prove that user action is not feasible, such as Smart TVs, which offer a shortcut to sharing what you are watching, but this is only feasible for DEVICES, WEB / DESKTOP applications shall obligatorily cause the user to generate authentication tokens, which have limited validity and restrictions of what can be done via API.
Sorry for the bad news, there are still many examples of how to integrate with the old docs!