2013-05-22 43 views
0

我幾乎浪費了我一整天搜索爲什麼不上朋友牆上張貼不張貼在朋友的簡單的進紙方式牆

請幫助

我沒有得到任何錯誤,但後似乎不將出現在朋友牆上。

我得到一個對話框說張貼在留言板..當我點擊份額它就會關閉確認,但是,朋友的牆上都沒有變化

我試過很多不同的朋友牆來檢查任何隱私政策,但我不認爲這是這裏關心的問題。

如果我不指定「以」放慢參數它被貼在我的個人資料,但唯一的問題是與朋友牆

代碼如下

<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js">  
</script> 

<script src="http://connect.facebook.net/en US/all.js"> 
</script> 

<script type="text/javascript"> 

window.fbAsyncInit = function() 
{ 
    FB.init 
    (
     { 
      appId : 'appid', 
      status : true, // check login status 
      cookie : true, // enable cookies to allow the server to access the session 
      xfbml : true , // parse XFBML 
      oauth : true // Enable oauth authentication 
     } 
    ); 
}; 

    $(document).ready(function() 
    { 
     $('#shareonfacebook').click(function (e) 
     { 
      e.preventDefault(); 
      var obj= 
      { 
        method: 'feed', 
        name: 'DvimayPostPhoto', 
        link: 'http://localhost/FaceBook/index.html', 
        picture: 'http://www.fbrell.com/public/f8.jpg', 
        caption: 'hey how is my Application ? tell me dude', 
        description: 'hey how is my Application ?', 
        to: 'frnd id', 
        message: '' 
      }; 
      function callback(response) 
      { 
       document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; 
      } 

      FB.ui(obj, callback); 

     }); 
    } 
    ); 
</script> 
<script> 
FB.init({appId : 'app id'}); 
</script> 

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

<script src="C:/Users/Dvimay/Desktop/HIGHCHARTS/js/highcharts.js"></script> 
<script src="C:/Users/Dvimay/Desktop/HIGHCHARTS/js/modules/exporting.js"></script> 
<div id="container" style="height: 400px;width:500px;"></div> 

<input type="button" id="shareonfacebook" value="Share This Link on Facebook"></input> 

</html> 
+0

請幫我解決這個問題 – Ashwini

+0

我假設你在那裏代替你的朋友的Facebook ID代替'frnd id'? – JayNCoke

回答

0

你從FB.ui得到什麼響應( )?看代碼,這似乎是好的。我可以想象的唯一可能的情況是,您的朋友已禁止在他/她的牆上張貼的許可。你有沒有嘗試過其他的朋友ID?

+0

肯定會嘗試Velu建議的其他朋友ID。 直接來自FB文檔(https://developers.facebook.com/docs/reference/dialogs/feed/): '如果某人有「誰可以在您的時間表上發帖?」設置爲「僅限我」,而另一個人試圖使用Feed對話框發佈帖子時,將顯示「無法發佈」錯誤。 – JayNCoke

相關問題