在朋友的墙上张贴消息,图API。 我有正在使用该应用程序的用户的publish_stream扩展权限。使用图形API在朋友的墙上张贴
如果我想在我的墙上张贴某些东西,代码就会起作用。
是否有任何方法可以发布在墙上或发送消息给特定用户的所有朋友?
请帮忙谢谢!!
以下是代码,但它不工作。
$friends = $facebook->api('/me/friends');
foreach($friends['data'] as $friend){
$friendsUserId = $friend['id'];
echo $friendsUserId . "</br>";
$result = $facebook->api('/$friendsUserId/feed', 'POST', array(
message' => 'Test Message' ));
print_r($result);
}
这不会工作了。看facebook博客以供参考。 https://developers.facebook.com/blog/post/2012/10/10/growing-quality-apps-with-open-graph/ – Underdog 2013-10-07 10:03:10