Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API search for hashtag

Tags:

I am trying to fetch all public Facebook posts containing a hashtag that is a combination of words glued together. For example "#ThisIsMyHashTag", using the graph search api however the posts are not being found. Searching when the hashtag is an actual word works fine.

Does anyone know of a way to get this to work?

EDIT: It appears that some hastags with multiple words are in there e.g. "#BreakingBadMarathon". Sorry for changing the question, does anyone know if this only works for really popular hashtags, or maybe it's that the search index takes a while to update?

EDIT 2: OK, so now some of the posts are showing up for my hashtag, but not all of them are. When making the call earlier, 2 recent posts appeared, but not older ones, then when running it again later, one of the earlier posts appeared. But some before the earliest, some in between the posts that are returned and some posts I made after the most recent one in the response are not returned. I wonder if the posts were stored in different data centres and some of them are getting indexed and some aren't? Anyone else got any ideas why some public posts are appearing and others aren't?

like image 373
neilcrookes Avatar asked Sep 26 '13 17:09

neilcrookes


1 Answers

Note that as of August 2014 and Graph API 2.0, Facebook has deprecated the post search functionality:

Using the Graph API (v1.0) > Available Search Types:

post: Search all public posts. Does not support limit/offset paging. This is not available in v2.0 or later versions of the API

like image 171
Jonathan Allard Avatar answered Sep 19 '22 03:09

Jonathan Allard