2010-07-27 6 views
0

이전 API에서 작동하도록 stream_publish를 가져올 수 없습니다. 현재 클라이언트로 업그레이드 할 수있는 옵션이 없으므로 이전 API를 사용하고 있습니다.이전 FB API를 사용하는 stream_publish

$facebook->api_client->stream_publish("Test",null,null,$uid,$appid); 

오류 500이 반환됩니다.

아이디어가 있으십니까?

답변

0

나는이 메서드를 제대로 호출하지 않는다고 생각합니다.

여기에 인수 서명 보이는

/** 
    * 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) { 

과 같아야하지만 당신의 코드가 $uid이 예상되는 $appid을 보여줍니다거야.

$uid의 사용자가 애플리케이션에 the proper permissions을 부여하지 않은 경우에도 작동하지 않습니다.

관련 문제