问题
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:
- Create a post with just a message, get its ID
- Upload all your photos with
{ "published" : "false" }
, get their IDs - 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