2013-04-10 108 views

回答

1

截至今年2月,您无法使用API​​内容张贴到朋友的墙壁 - 在这里看到:https://developers.facebook.com/roadmap/completed-changes/#february-2013

删除通过图形API张贴到朋友墙能力,我们将删除 张贴的能力通过Graph API发送给用户的朋友墙。 具体而言,针对[user_id]/feed的帖子,其中[user_id]为 不同于会话用户,或者stream.publish呼叫,其中 target_id用户与会话用户不同,将会失败。

但是,您可以使用带有“to”参数集的FB.ui函数将链接发布到朋友的ID。

0

见从2013年3月6日以下的变化,张贴在Facebook的开发者路线图已完成的更改名单上:

Removing ability to post to friends walls via Graph API 
We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail. 
If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.