我正在创建一个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