Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
593 views
Welcome To Ask or Share your Answers For Others

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...