3

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.

Sled
  • 18,541
  • 27
  • 119
  • 168
Grassboy Wu
  • 43
  • 1
  • 4

2 Answers2

0

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" }
Pavlo
  • 1
  • 1
-2

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

liotims
  • 424
  • 2
  • 18