3
votes

For some time now, Facebook offers a new carousel post (basic feeding with link and many pictures) similar to the carousel ads, but every picture's link lead to the same page, it's a basic publication with text, link, image... An sample of what I need (it's french, but sample images speak for itself: http://www.leptidigital.fr/reseaux-sociaux/comment-creer-publication-facebook-carrousel-5612/

and the result about this news : https://www.facebook.com/leptidigital/posts/868750466554694

I've only find documentation about the carousel ads (payable) via marketing API. Any body know if is possible with the standard API ? My research come to nothing... Special thanks for every one !

1
If you look at that post in Graph API Explorer, you see that the images are in the child_attachment structure. And apparently, you can use that field when creating page posts, too: developers.facebook.com/docs/graph-api/reference/v2.5/page/…CBroe
Thanks, that the good answer !!G Mrx

1 Answers

2
votes

Thanks to CBroe for the comment left explaining where to find this information.

If you look at that post in Graph API Explorer, you see that the images are in the child_attachment structure. And apparently, you can use that field when creating page posts, too

Facebook feed documentation

Here's an example in Python on how to accomplish what the documentation means:

import requests

post_data = {"access_token": "your access token",
             "message": "whatever you want to say"
             "link": "https://some.link"
             "child_attachments": '''[
                 {
                     "link": "http://some.link",
                     "picture": "https://app.replypro.io/media/wb3.jpg"
                 },
                 {
                     "link": "http://some.link",
                     "picture": "https://app.replypro.io/media/wb3.jpg"
                 }]'''}}
requests.post("https://graph.facebook.com/v5.0/<your page id>/feed", data=post_data)