Use Case: I want to publish a user generated message with a specific link and a bunch of images clicked by user on Facebook. I can post simple message with a link but not able to post multiple images with that post. As a work around, I can post a single image by making it as a preview image of a link but how can I post multiple images with a FB post ?
Going through official doc, doesn't mention any such scenarios:
https://developers.facebook.com/docs/graph-api/reference/v2.4/page/feed#publish https://developers.facebook.com/docs/graph-api/reference/v2.4/group/feed#publish https://developers.facebook.com/docs/graph-api/reference/v2.4/user/feed#publish
Can anyone give me some pointer to some documentation which explains this task. I'm using Facebook Javascript SDK for all api calls.
Also, if this is not supported then is there any workaround to accomplish it ? I can see multiple social media managements softwares like Hootsuites has this functionality. I assume there must be some way to accomplish my tasks. Any pointers will be appreciated.
Updates: Based on the answer, I found following apis which allow you to create an album. https://developers.facebook.com/docs/graph-api/reference/v2.4/group/albums https://developers.facebook.com/docs/graph-api/reference/page/albums#Creating https://developers.facebook.com/docs/graph-api/reference/user/albums#Creating https://developers.facebook.com/docs/graph-api/reference/v2.4/album#publish
Few quick doubts:
- what is id (The Object ID that we're creating an album for) in user,page and group album api ?
- Once we have created album, how do we add photos in those created albums ?
- Can I use this https://developers.facebook.com/docs/graph-api/reference/v2.4/album/photos#publish for adding photos to albums created in previous step ?
- Also, How can I use this album to publish in a user,page and group feed ? There is no param for album in feed api ? Refer to my updated title for better understanding of my intentions. Look at this
- Also, to give more clarity of my task, I can post one picture in the above api call by using it as a link preview image. Issue comes when there is a link with a given message to be published on user/group/page feed and there a bunch of images which needs to be attached to this post. How can I accomplish this ?
- If above point is not feasible, then let me know if following approach works or not ? Use this to create an album with a given message. Add links to message only for publishing on facebook. One DownSide will be this new album won't appear in feed. But this way we can publish a feed with multiple images and links. Let me know of your thoughts on this.
- By taking approach mentioned above, there will be no need of using this. Also, albums created will be show on feed, right ?
It'll be great if I can get answer to questions mentioned above.