0
我想知道是否有可能通过使用stream_publish作为页面或应用发布到用户流/墙。目前,我已将自己的应用授予我自己的墙上的stream_publish。但是当我从应用程序发布到我的信息流时,帖子会显示为我自己发布的帖子,而不是让应用程序将其发布到我的墙上。Facebook流发布到墙上作为应用/页面
我想让帖子看起来像应用发布它。我已经在stream_publish params中使用了uid参数,并将其设置为appId ...但帖子仍然看起来像一个自己的帖子。
我的代码:
$postData = array( $feed_dir = '/'.$fb_uid.'/feed/',
$method = 'POST',
$msg_body = array( 'access_token' => $arrUserData['access_token'],
'message' => 'here goes the message',
'name' => '-name-',
'link' => 'http://some-url',
'description' => '-description-',
'actions' => ($actions),
'uid' => $iniHandler->getIniSetting('facebook.app.id')
)
);
try {
$res = $facebook->api($feed_dir, $method, $msg_body);
}
catch (Exception $e) {
$err_str = $e->getMessage();
}
还是疗法另一种方式张贴到墙上,让后看起来像一个帖子中的应用程序?我的用户可以在我的应用程序中注册问题,我的应用程序向用户墙上发布一些消息......这就是我的目标。