我可以使用https://graph.facebook.com/comments/?ids=id检索我的fb评论,但我无法将评论发回fb,下面是我的代码,请给我一些指导
$accessToken = 'xxxxxxxxxxxxxxxxxx';
$facebook = new Facebook(array(
'appId' => 'xxxxxxxxxxx',
'secret' => 'xxxxxxxxxx',
));
$ret_obj = $facebook->api('/appid/comments', 'POST',
array(
'access_token' => $accessToken,
'message' => $comemnts
)
);
echo 'success...';
答案 0 :(得分:0)
这是错误的
$facebook->api('/appid/comments', 'POST',
应该是这样的
api('xxxxxxxxxxxx_xxxxxxxxxxxx_xxxxxxxxxxxx', 'POST