How to Publish a status with multiple photos by Facebook API?

谁说我不能喝 提交于 2019-11-30 18:41:20

问题


I have a problem with Facebook Graph API. Is there any way to "attach multiple photos within a status post" using the Graph API (Javascript SDK)?

With the iOS Facebook app can post a status with multiple photos.

However, after looking through the documentation on internet I couldn't find out how it works. Does anyone have idea? This a status screenshot that I would like to generate with the Facebook API.


回答1:


This could be a solution:

  1. Create a post with just a message, get its ID
  2. Upload all your photos with { "published" : "false" }, get their IDs
  3. Update each photo with { "target_post" : "<yourPostID>", "published" : "true" }



回答2:


Did you see this documentation ? https://developers.facebook.com/docs/opengraph/usergeneratedphotos/ it might help you



来源:https://stackoverflow.com/questions/15348124/how-to-publish-a-status-with-multiple-photos-by-facebook-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!