how to post facebook user wall/ page status by a single user only no app install for other users

后端 未结 2 1310
一生所求
一生所求 2021-01-06 12:30

I am working on a site and i need to post page links from that site to a special user wall or page if something is published on it which means i only need one user to post t

相关标签:
2条回答
  • 2021-01-06 13:24

    To post to someones wall (or perform any action with the open graph) you must be authenticated with facebook as somebody in their graph or an application that they have granted permission to.

    You should look at the permissions that can be set using the oauth scope attribute...

    https://developers.facebook.com/docs/reference/dialogs/oauth/

    To me it looks like they will need to grant your application publish_stream if you want to write to their friends walls as well as the user that you are authenticated as.

    https://developers.facebook.com/docs/reference/login/extended-permissions/

    0 讨论(0)
  • 2021-01-06 13:32

    You can write a backend script (maybe a cron job using the FB PHP-SDK) that runs as the special user and makes the desired FB api calls. For this, you will want to use a long-lived access token, which needs to be renewed every 60 days. You might also try your FB api calls using an App Access Token, which do not expire but also do not support all FB publishing and other operations.

    0 讨论(0)
提交回复
热议问题