2011-09-16 14 views
0

페이스 북 그룹 벽에 게시하려고하지만 위 오류가 계속 발생합니다. 아무도 내가 여기서 잘못하고있는 것을 말해 줄 수 있습니까? Facebook 문서를 확인했지만 여전히 문제를 해결할 수 없습니다. 내 코드는 다음과 같습니다 :잡히지 않은 OAuthException : (# 200) 사용자가이 작업을 수행하도록 애플리케이션을 인증하지 않았습니다.

$facebook = new Facebook(array(
    'appId' => $app_id, 
    'secret' => $app_secret, 
    'perms' => 'offline_access, user_groups, publish_stream', 
    'cookie' => true 
)); 


$result = $facebook->api(
    '/xxxxxxxxxgroupid/feed/', 
     'post', 
     array('access_token' => $facebook->getAccessToken(), 'message' => 'Playing around with FB Graph..') 
); 

답변

0

나는 당신이 user_groups 확장 된 권한이 필요하다고 생각합니다.

0

사용하기 전에 시도, 그 잘 작동 sould

try { 
     $params = array(
      'message'  => "Hurray! This works :)", 
      'name'   => "This is my title", 
      'caption'  => "My Caption", 
      'description' => "Some Description...", 
      'link'   => "http://stackoverflow.com", 
      'picture'  => "http://i.imgur.com/VUBz8.png", 
     ); 

     $post = $facebook->api("/$user/feed","POST",$params); 

     echo "Your post was successfully posted to UID: $user"; 

    } 
    catch (FacebookApiException $e) { 
     $result = $e->getResult(); 
    } 
관련 문제