使用Facebook php SDK 4发布到页面提要时未发送通知
我正在(代表用户)向某个页面发布帖子,帖子确实显示在提要中,但没有通知页面所有者(不一定是发布的用户)已经发布了新帖子 下面是函数的外观使用Facebook php SDK 4发布到页面提要时未发送通知,php,facebook,facebook-graph-api,Php,Facebook,Facebook Graph Api,我正在(代表用户)向某个页面发布帖子,帖子确实显示在提要中,但没有通知页面所有者(不一定是发布的用户)已经发布了新帖子 下面是函数的外观 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
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();
}
这个帖子有用吗?。。回答是什么?.Yeah Post出现在Facebook上,response是Post id([“signedRequestData”:“Facebook\FacebookSession”:private]=>NULL}数组(1){[“id”]=>string(33)“299683480205228\u 10152277756267362”})如果你确定应该发送通知,我建议在developers.Facebook.com上打开一个bug。它似乎与SDK无关,因为它确实创建了帖子。实际上,我不确定,但假设如果用户手动发布帖子,则应该发送通知。我试着到处搜索,但没有找到任何关于这个问题的信息。