我幾乎浪費了我一整天搜索爲什麼不上朋友牆上張貼不張貼在朋友的簡單的進紙方式牆
請幫助
我沒有得到任何錯誤,但後似乎不將出現在朋友牆上。
我得到一個對話框說張貼在留言板..當我點擊份額它就會關閉確認,但是,朋友的牆上都沒有變化
我試過很多不同的朋友牆來檢查任何隱私政策,但我不認爲這是這裏關心的問題。
如果我不指定「以」放慢參數它被貼在我的個人資料,但唯一的問題是與朋友牆
代碼如下
<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>
請幫我解決這個問題 – Ashwini
我假設你在那裏代替你的朋友的Facebook ID代替'frnd id'? – JayNCoke