【问题标题】:Graph API --> liking the post of a fan of the page I manage using the page account token, not workingGraph API --> 喜欢我使用页面帐户令牌管理的页面的粉丝的帖子,不工作
【发布时间】:2014-01-24 07:06:34
【问题描述】:
    $accounts = file_get_contents("https://graph.facebook.com/me/accounts?access_token=" . $access_token); 
    $accounts_obj = json_decode($accounts);
    $page_access_token = $accounts_obj->data[0]->access_token;

    $attachment = array( 
                        'access_token' => $page_access_token
                    );

    $likes_response = $facebook->api("/".$object_id."/likes", 'post', $attachment);

试图喜欢我管理的页面的粉丝的帖子。 无论我使用 page_access_token 还是常规 access_token,我都会收到此错误:

致命错误:未捕获的 OAuthException:(#200) 第 1332 行 ...../htdocs/facebook-php-sdk-master/src/base_facebook.php 中引发的权限错误

...常规访问令牌是 2 个月(60 天)的访问令牌。

【问题讨论】:

    标签: php facebook-graph-api


    【解决方案1】:

    好的,问题似乎是粉丝页面无法完全访问自己的粉丝页面和供稿。作为一个页面,我不能像其他任何非朋友一样喜欢我的粉丝的帖子,在正常的浏览器导航中也是如此。

    【讨论】:

      猜你喜欢
      • 2011-11-08
      • 1970-01-01
      • 2012-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-08
      • 1970-01-01
      相关资源
      最近更新 更多