Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hashtag search in Facebook API

I am trying to find in Facebook API if they provide the HashTag search.

I meant I search in Facebook Query language and searched in Facebook Tool Explorer.

Any Idea ?

enter image description here

like image 216
Pankaj Avatar asked Feb 27 '14 00:02

Pankaj


People also ask

Is there a hashtag search engine?

Social Searcher is a free social media search engine. You can use it to track both users and mentions – include hashtag mentions. Its search engine allows you to monitor all public social mentions in social networks and the web.

How do you do a hashtag search?

To search for a hashtag on desktop, enter the hashtag including the # symbol into the search box. On mobile, enter your search term in the search box, then tap Tags. If you're paying attention to your Instagram feed, you'll learn to quickly spot trending hashtags as they emerge.


4 Answers

Since April 30th and the introduction of Facebook api v2.0, public Post search is no longer available and will return :

{
  "error": {
    "message": "(#11) Post search has been deprecated", 
    "type": "OAuthException", 
    "code": 11
  }
}

According to Facebook changelog v1.0 will continue to work until April 30th, 2015. As the search endpoint is back in the v2 doc, there is hope that they will reconsider the deprecation.

The search endpoint is a fulltext search, you just have to encode the hash (%23) and run your query through it :

Facebook API explorer :

You have to select v1.0 or Unversioned in the API version selector (on the top right)

https://graph.facebook.com/search?type=post&q=%23the_hash_tag

Curl or whatever :

Just remove /v2.0/ from the url and call the unversioned API

https://graph.facebook.com/search?access_token=YOUR_TOKEN&type=post&q=%23the_hash_tag
like image 54
Creaforge Avatar answered Oct 03 '22 08:10

Creaforge


There is currently no API for the hashtags feature on Facebook There is a posts search function which will return some posts with a certain hashtag if you use that hashtag as the search string. But it will ignore the # tag. There is a comment on one of the sites which says "you can change the # with the hex value from the ascii table (%23) to search for hashtags. but it will only find tags, created by the facebook homepage or official facebook applications." Not sure how valid, you could try it like this https://graph.facebook.com/search?q=%23myhashtag https://graph.facebook.com/search?q=%23myhashtag

like image 43
Vrashabh Irde Avatar answered Oct 03 '22 10:10

Vrashabh Irde


There is no hashtag API available for Facebook and using %23 for #(hash) is the only solution as of now which already everyone here has commented upon.

I'm not too sure about FQL being deprecated in near future as I could see different opinions across the board.

like image 33
Sunil Avatar answered Oct 03 '22 10:10

Sunil


As I am understanding you would use Keyword Insights API Though as mentioned on the following link

Access to the Keyword Insights API is restricted to a limited set of media publishers and usage requires prior approval by Facebook. You cannot apply to use the API at this time.

https://developers.facebook.com/docs/keyword_insights/

Take note on the mention of hashtag searching in the "best practices" section.

like image 36
CrandellWS Avatar answered Oct 03 '22 09:10

CrandellWS