0
如何標記圖像並將其上傳到我的應用的用戶配置文件?如何使用JS和API在用戶的Facebook個人資料配置文件上標記和上傳圖像
我正在使用下面的代碼,它不適合我。
在結果頁面上,用戶已將上傳,發佈,offline_access作用域提供給我的應用的着陸頁上的我的應用。
我使用這個代碼:
function graphStreamPublish(session){
showLoader(true);
FB.api('/me/feed', 'post',
{
message : "trying to publish image",
picture : 'http://localhost:8085/myweb/images/arranged2.jpg',
name : 'This is my demo Facebook application (JS SDK)!',
description : 'It is fun to write Facebook App!!'
},function(response) {
showLoader(false);
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});
}
我需要做Fb.init在頁面上呢?
我把上面的代碼放在<body>
標籤後面是不是對吧?
如何在同一圖像上標記用戶?
謝謝你的幫助。我用「http://www.thefinestwriter.com/blog/wp-content/uploads/2009/11/online_dating.jpg」替換了圖片網址,但它仍然沒有工作,也沒有提供任何錯誤或對話或任何東西。我正在測試本地主機上的應用程序。這可能是它的原因嗎? –
@ theomega有人請幫助。 –