使用Facebook php SDK 4发布到页面Feed时没有发送通知

时间:2014-07-07 22:10:19

标签: php facebook facebook-graph-api

我正在为一个页面发帖(代表用户)并且帖子确实在Feed中显示但是没有通知页面所有者(不一定是发布的用户)新帖子已经完成了。

这是函数的样子

global $fb_app_id;
global $fb_app_key; 

FacebookSession::setDefaultApplication( $fb_app_id, $fb_app_key );

$session = new FacebookSession(custom_facebook_getToken($user_id));

if ( isset( $session ) ) {
$request = (new FacebookRequest( $session, 'POST', '/PAGEIDHERE/feed', array(
'link' => 'www.somesite.com',
'message' => 'website Coming Soon.....',
//picture – URL of an image you want to include in the update
//name - The name of the link attachment
//caption - The caption of the link (appears beneath the link name)
//description - The description of the link (appears beneath the link caption)
)))->execute()->getGraphObject()->asArray();
}

0 个答案:

没有答案