我有一個Facebook應用程序,我想通過從我的flex應用程序調用一個php腳本將消息從應用程序直接發佈到牆上。 你能幫我解決嗎?從FB應用程序在Facebook牆上發佈一條靜態消息
function postmessage($appid) {
$facebook = new Facebook(array(
'appId' => 'XXX',
'secret' => 'xxx',
'cookie' => true
));
$session = $facebook->getSession();
$attachment = array(
'message' => 'this is my message',
'name' => 'This',
'caption' => 'Caption of the Post',
'link' => 'apps.facebook.com/tvtreasurehunt/',
'description' => 'this is a description'
);
$result = $facebook->api('/me/feed/', 'post', $attachment);
}
你的問題到底是什麼? – Maerlyn
我想使用php sdk發佈消息。其實我有一個靈活的應用程序,然後我打電話給我想發佈消息到用戶牆的web服務。 – Prashant