我在嘗試使用我的應用程序中的Facebook圖表發佈鏈接到朋友牆時遇到問題。 我目前使用Facebook SDK for PHP,我沒有任何問題張貼到登錄用戶的牆上,但無法發佈給登錄用戶的朋友。 我已請擴展權限「publish_stream」這裏是代碼我使用:Facebook Graph API在朋友牆上張貼
$args = array('message' => $message,
'link' => 'google.com',
'name' => 'Test!',
'caption' => 'Please click on the link',
'description' => 'description');
$result = $facebook->api("/$friendId/feed", 'POST', $args);
$ friendId已經登錄的用戶的朋友的Facebook的ID,任何幫助,將不勝感激。
你什麼錯誤?您是否閱讀過https://developers.facebook.com/blog/post/2012/10/10/growing-quality-apps-with-open-graph/(在底部有關於刪除發佈給朋友的功能的信息壁)。 –
我沒有收到任何錯誤。 $ result有一個包含帖子id的數組,但沒有任何內容發佈在好友牆上,如果您訪問facebook.com/ID ,則該ID不存在讀完博客文章後,這是否意味着我無法發佈到朋友牆使用API了嗎?我必須使用feed對話框嗎? – user1871102
您將不得不在2013年2月6日以後。https://developers.facebook.com/roadmap/#february-2013所以,最好不要嘗試使用該功能構建應用程序。 – CBroe