Post to facebook page wall as a page

后端 未结 3 568
臣服心动
臣服心动 2021-02-10 05:47

I want to post to facebook page wall as a page using PHP. I\'ve got access_token by below links.

https://graph.facebook.com/oauth/authorize?type=user_agent&         


        
相关标签:
3条回答
  • 2021-02-10 06:28

    Pages cannot post to user's walls (that's why you're getting the OAuthException that says "as a page, you cannot set the target_id"). You'll have to first create an application and get the user's permission (publish_stream) to post to their feed via said app.

    0 讨论(0)
  • 2021-02-10 06:33

    I've had the same problem. The reason was that I was an admin of more than one page, and I tried to post with the token of another page.

    0 讨论(0)
  • 2021-02-10 06:43

    I assume you have some knowledge of app and how posting work.

    1.You have to get Page access token and use this on array.

    2.you use this

    "/$pageid/feed"
    

    try use this

    $facebook->api($pageID . '/feed','POST'
    

    Thanks...

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