我有问题将facebook帖子整合到墙上(不是用户) . 我已经为所有的勺子授权了应用程序 .

炒到列表:user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,USER_LOCATION,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_relationships,user_relationship_details,user_religion_politics,user_status,user_videos,user_website,user_work_history,电子邮件,read_friendlists ,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,manage_friendlists,manage_notifications,status_update,offline_access,publish_checkins,publish_stream,rsvp_event,manage_pages

我已经接受了所有授权访问范围,并且我已成功连接并获取用户数据,我已将数据保存到用户可用页面的信息中: page id and page access token

当我发布测试消息它说: #200) The user hasn't authorized the application to perform this action

这是我的fb登录脚本:

window.fbAsyncInit = function() {
     FB.init({ 
       appId:'MY_APP_ID', cookie:true, 
       status:true, xfbml:true,oauth : true 
     });
   };
   (function(d){
           var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
           if (d.getElementById(id)) {return;}
           js = d.createElement('script'); js.id = id; js.async = true;
           js.src = "//connect.facebook.net/en_US/all.js";
           ref.parentNode.insertBefore(js, ref);
    }(document));
    //FB.Event.subscribe("auth.logout", function() {window.location = '/logout'});     
$('#facebook_login').click(function(e) {
    FB.login(function(response) {
      if(response.authResponse) {
          parent.location ='http://mywebsite.com/users/oauth_fb';
      }
 },{scope: 'user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_relationships,user_relationship_details,user_religion_politics,user_status,user_videos,user_website,user_work_history,email,read_friendlists,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,manage_friendlists,manage_notifications,status_update,offline_access,publish_checkins,publish_stream,rsvp_event,manage_pages'});
});

连接Facebook帐户后,我将使用我的脚本自动注销我的Facebook帐户:

<script>
                      window.fbAsyncInit = function() {
                         FB.init({ 
                           appId:'MY_APP_ID', cookie:true, 
                           status:true, xfbml:true,oauth : true 
                         });

                         FB.Event.subscribe('auth.authResponseChange', function(response) {
                             if (response.status === 'connected') {
                                FB.logout(function(response) {
                                     window.location = '';
                                });
                             }
                         });
                       };
                       (function(d){
                               var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
                               if (d.getElementById(id)) {return;}
                               js = d.createElement('script'); js.id = id; js.async = true;
                               js.src = \"//connect.facebook.net/en_US/all.js\";
                               ref.parentNode.insertBefore(js, ref);
                        }(document));
                    </script>

这是我发布的脚本(这是用于离线发布,因此用户已经在Facebook上注销):

$oauth_uid = 'PAGE_ID_FROM_DB';
$oauth_token = 'PAGE_TOKEN_FROM_DB'
$post_url = '/'.$oauth_uid.'/feed';
if ($oauth_uid) {
$msg_body = array(  
    'access_token'  => $oauth_token,                
    'message' => 'tesing post to my page',
);

try {
$postResult = $facebook->api($post_url, 'post', $msg_body );
} catch (FacebookApiException $e) {
echo $e->getMessage();
}
}

如何解决这个问题?我没有看到我的脚本有什么问题,为什么我可以发布到我的个人Facebook帐户,而我不能在我的Facebook页面上发帖?

请帮忙..

谢谢 .