2014-10-07 28 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

相关问题