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