Search code examples
facebookfacebook-opengraphfacebook-access-tokenfacebook-timeline

How can my website app publish on facebook timeline when the user is not logged on facebook?


I would like to know if there is a posibility of publishing my actions on facebook timeline if the user is not logged on facebook, I mean through a cron job, actually my users have an extended token, but if they are not connected on facebook, it can't publish anything on their timelines


Solution

  • I believe you have to use app access tokens.

    If your app publishes on behalf of its users and requires an access token with no expiration time, you should use an App Access Token. An App Access Token is signed using your app secret and will not expire; it will be invalidated if you re-key/reset your application secret.

    https://developers.facebook.com/docs/opengraph/using-app-tokens/