2014-10-07 30 views
-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 */ 
      } 
     } 
    ); 
} 
+0

是一個NodeJS項目? – 2014-10-19 10:27:55

回答

0

如果你真的想發佈豐富的內容,你應該使用Notes

當您創建相冊時,它將顯示爲您的頁面/配置文件的狀態。該狀態的狀態消息將是專輯描述。所以你可以插入你的消息到專輯描述,你應該沒問題。

+0

筆記被刪除,因爲API v.1不幫我 – eugeneK 2014-10-19 09:31:48

相關問題