2012-01-30 26 views
0
$params = array(
'access_token' => $this->facebook->getAccessToken(), 
'message' => 'My message', 
'picture' => 'http://bookshop.fbsocialapps.com/images/homepage-illustration.jpg', 
); 

$post_id = $this->facebook->api('/'.$result['id'].'/feed','post',$params); 
//$result['id'] is the id of the event 

當我這樣做時,只發布消息。 如果我用$替換$ result ['id'],它會正確發佈。發佈鏈接時,我有完全相同的問題。如何通過Graph API在活動中發佈圖片或鏈接?

感謝您的幫助

回答

相關問題