Howto use FB Graph to post a message on a feed (wall)

前端 未结 7 1745
谎友^
谎友^ 2020-12-23 12:50

I have created an app, and now i want to post a message on one of my friends wall with use of the new Graph API. Is this do-able?

I am already using oAuth and the Gr

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-23 13:13

    You'll need the "publish_stream" extended permission in order to write to the feed. Here is a complete list of them: http://developers.facebook.com/docs/authentication/permissions.

    In order to get the extended permission, get the authorization token in this way:

    https://graph.facebook.com/oauth/authorize?
    client_id=...&
    redirect_uri=http://www.example.com/callback&
    scope=publish_stream
    

提交回复
热议问题