You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to get posts of a page, you use this endopoint: pagename?fields=posts.limit(10)
Most of the posts are of this type:
{
"message": "Elle va faire battre votre ❤️ ! #EMEHARI #PlageDeLaBastille",
"created_time": "2016-05-22T12:54:14+0000",
"id": "103666283041018_1048666508540986"
}
But some have one field more:
{
"created_time": "2016-03-13T16:00:44+0000",
"message": "E-MEHARI \"styled by Courrèges\" a électrisé le Salon de Genève !",
"story": "Citroën added 4 new photos.",
"id": "103666283041018_994707227270248"
}
When trying to retrieve Citroen.France 's last 50 posts, I get this error because of this field:
Traceback (most recent call last):
File "myproject/myfacebookapiclient.py", line 21, in get_page_posts
page_posts = graph.get_object(page_id, **args)
File "myproject/src/facebook-sdk/facebook/__init__.py", line 106, in get_object
return self.request(self.version + "/" + id, args)
File "myproject/src/facebook-sdk/facebook/__init__.py", line 272, in request
raise GraphAPIError('Maintype was not text, image, or querystring')
facebook.GraphAPIError: Maintype was not text, image, or querystring
When trying to get posts of a page, you use this endopoint: pagename?fields=posts.limit(10)
Most of the posts are of this type:
But some have one field more:
When trying to retrieve Citroen.France 's last 50 posts, I get this error because of this field:
I printed the header, and it looks like this:
It looks like it's a new feature from Facebook, that the if/elif/else loop of the init.py file is not handling the way the API explorer is for example
The text was updated successfully, but these errors were encountered: