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在活动中发布图片或链接?
感谢您的帮助