Creating Facebook event for specific page with FB Graph API

后端 未结 4 1521
情书的邮戳
情书的邮戳 2021-02-02 03:13

I need synchronize events from my CMS to Facebook specific page. I\'m trying to create an event for my created page but still have no result. I can simply create events, related

4条回答
  •  离开以前
    2021-02-02 03:37

    Set the access_token to the page one before making the post. Make sure you app has the "manage_pages" permission for this to work.

    Like this:

    $page = $fbApi->api('/'.,'GET',array('fields'=> 'access_token'));
    $fbApi->setAccessToken($page['access_token']);
    

提交回复
热议问题