2013-04-10 106 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.