2

Facebook ウォールに共有する次のコードがありますが、ユーザーが管理者権限を持っている管理ページに共有するオプションがありません (自分のアカウントでテストしてみました) 誰でもこれを手伝ってもらえますか? また、できればフィードに設定された日付に従って、将来的に投稿したいと考えています。

<script>
window.fbAsyncInit = function() {
  FB.init({appId: '475259649152397',
    channelUrl : '<?php get_theme_root();?>/inc/facebook-javascript-sdk/channel.php',
    status: true, 
    cookie: true,
    xfbml: true
  });
};

function Login()    
{
   FB.login(function(response) 
   {
       if (response.authResponse) 
       {
            getUserInfo();
       } 
       else 
       {
         console.log('User cancelled login or did not fully authorize.');
       }
   },{scope: 'manage_pages'});
}

(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>

<script type="text/javascript">
jQuery(document).ready(function(){
   jQuery('#share_button').click(function(e){
     e.preventDefault();

     FB.ui({
       method: 'feed',
       name: 'This is the content of the "name" field.',
       link: ' http://example.com/',
       picture: 'http://myface.gif',
       caption: 'insightful thought provoking caption.',
       description: 'interresting".',
       message: ''
     });
   });
});
</script>

ユーザーウォールへの共有では問題なく機能しますが、管理ページへの共有オプションはありません

前もって感謝します!

4

1 に答える 1