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();
}
還是療法另一種方式張貼到牆上,讓後看起來像一個帖子中的應用程序?我的用戶可以在我的應用程序中註冊問題,我的應用程序向用戶牆上發佈一些消息......這就是我的目標。