我正在創建一個Facebook應用程序。我管理了一個擴展的發佈流應用程序。我想在用戶的牆上顯示應用程序結果。做下面的方法,它會自動發佈在用戶的牆上,我想通過發佈/跳過對話框來完成。任何人都可以幫助我。非常感謝!!Facebook的應用程序發佈在用戶的牆上的權限(發佈/跳過)php sdk
$facebook->api('/me/feed', 'post', array(
'message' => message,
'name' => $fbme['first_name'],
'description' => 'here goes description',
'caption' => 'this is caption',
'picture' => $imageurl,
'link' => 'some link here',
//下一部分,邀請好友。我想當用戶點擊發布/只跳過一個對話窗口apper請求邀請朋友。我嘗試這種方式,但它不起作用。
function(response) {
if (response && response.post_id) {
alert('Post was published.');
'<?php echo("invitefriends.php")'
} else {
alert('Post was not published.');
'<?php echo("invitefriends.php")'
}
我遇到的問題是我得到三個窗口,並同時他們所有人。 invitefriends.php具有與javascript sdk示例中提到的相同的代碼,並且它工作正常。
讓我知道在哪裏以及如何包含invitefriends.php。
謝謝!!
日Thnx上面的鏈接是確實有幫助,但它並沒有解決我的問題,檢查上面的註釋。 – 2011-03-19 22:47:06