-1
我有興趣在我的頁面上創建帖子,或者我的圖片來自我的相冊和一些包含一些消息和某些鏈接/句柄的文本(對Facebook朋友或頁)如何在Facebook上發佈幾條帶消息的圖片
現在我試圖創建一個專輯,添加幾張圖片,但我幾乎沒有控制什麼的描述將是。
FB.login(function() {
FB.api("/me/accounts", function (response) {
FB.api(
"/usetoken/albums",
"POST",
{
"name": "My Album",
"message": "Some Message",
"access_token": response.data[0].access_token
},
function (response) {
debugger;
if (response && !response.error) {
debugger;
/* handle the result */
}
}
);
});
}, { scope: 'publish_actions,user_photos,manage_pages' });
function post_image() {
FB.api(
"/albumid/photos",
"POST",
{
"url": "imageurl",
"access_token": access_token
},
function (response) {
if (response && !response.error) {
debugger;
/* handle the result */
}
}
);
}
是一個NodeJS項目? – 2014-10-19 10:27:55