0
T'm写一个Facebook的画布应用程序,我试图张贴到用户的墙上。这个我正在使用的代码:Facebook的PHP SDK - 张贴到提示墙
if ($user) {
$attachment = array('message' => 'This is message',
'name' => 'Name of the message',
'caption' => 'Caption of link',
'link' => 'http://www.example.com/about',
'description' => 'Great site!',
'picture' => 'http://lorempixum.com/100/100/',
'actions' => array(array('name' => 'Do Something!',
'link' => 'http://www.example.com'))
);
$result = $facebook->api('/me/feed/',
'post',
$attachment);
}
所以我用2个Facebook账户进行测试,并将其张贴在墙上,但没有Facebook的对话框我经常看到。我希望用户能够被警告我要在墙上张贴,并允许他取消。
我该怎么做?
我明白了。实际上有意义...谢谢。 – 2011-12-24 16:14:16