Php 使用旧FB api进行流式发布
我似乎无法通过旧的API使流发布工作。我正在使用旧的API,因为没有使用当前客户端升级的选项Php 使用旧FB api进行流式发布,php,facebook,Php,Facebook,我似乎无法通过旧的API使流发布工作。我正在使用旧的API,因为没有使用当前客户端升级的选项 $facebook->api_client->stream_publish("Test",null,null,$uid,$appid); 返回错误500 有什么想法吗?我认为你没有正确调用该方法 下面是参数签名的外观 /** * Publish a post to the user's stream. * * @param $message the us
$facebook->api_client->stream_publish("Test",null,null,$uid,$appid);
返回错误500
有什么想法吗?我认为你没有正确调用该方法 下面是参数签名的外观
/**
* Publish a post to the user's stream.
*
* @param $message the user's message
* @param $attachment the post's attachment (optional)
* @param $action links the post's action links (optional)
* @param $target_id the user on whose wall the post will be posted
* (optional)
* @param $uid the actor (defaults to session user)
* @return string the post id
*/
public function stream_publish(
$message, $attachment = null, $action_links = null, $target_id = null,
$uid = null) {
但是,您的代码片段显示了$appid,其中需要$uid
此外,除非$uid的用户已授予您的应用程序权限,否则此操作将不起作用