我想得到用户访问标记, 因为我需要获得用户的留言和评论。
当我使用图形 API 探索器时, 它生成的访问符号是正确的, 并显示我的文章、 评论和其他数据。 但是, 当我试图通过使用此代码来获取文章和评论时, 它不会回复我的文章和评论, 也不会回复一些我不需要的其他数据 。
require_once( facebook.php );
$config = array(
appId => 383128895071077 ,
secret => 6a9ab479186f53db5c531a3fa5f91be0 ,
);
$facebook = new Facebook($config);
$access_token = $facebook->getAccessToken();
$result = $facebook->api( /me/feed/ , array( access_token => $access_token));
I searched all the google and get access token by different ways but I could not get posts and comments of me. I must be doing something wrong and need to sort out this as soon as possible. Thanks in advance.