【发布时间】:2010-12-07 11:06:48
【问题描述】:
如果这个问题是早期问题的重复,我很抱歉,但我没有找到任何相关的答案。
我正在构建一个 FB 应用程序,并尝试使用此代码发布到朋友墙:
$attachment = array(
'access_token' => $facebook->getAccessToken(),
'message' => 'Did a Test Post :',
'name' => "This is the title of my post",
'link' => "http://blogs.canalplan.org.uk/steve/2010/04/28/hitting-a-moving-target/",
'description' => "this is the body of the post with lots of wiffly woffly text in it, lets see if this all works ok!",
'picture'=>"http://blogs.canalplan.org.uk/steve/files/2009/12/13742_1291940983817_1389037839_836473_2130235_n.jpg",
);
100001893238650- this is a friend that give permission to publish on hes wall
$facebook->api('/100001893238650/feed', 'POST', $attachment);
现在,当我使用“我”而不是这个 id 时,它可以正常工作,但只要 id 不是“我”,我就会收到 Uncaught OAuthException: (#210) User not visible 错误。
我在使用 curl 时遇到了同样的错误。
我要求获得 publish_stream 和安全的 offline_access(我不认为 offline_access 已连接,但只是为了确定)权限。
我做错了什么?我还需要哪个权限?
【问题讨论】:
标签: php facebook facebook-graph-api