Search for posts on Facebook by Hashtag in JSON format

Asked

Viewed 183 times

1

How to bring public facebook posts by certain hashtag, for example #Olamundo. I need posts to come in JSON format.

  • Why not launch a query in Facebok.com? ;)

  • I already did this @Hardcorder, through the address: (https://www.facebook.com/hashtag/luto), but I need the result to be in JSON format.

1 answer

1

Facebook does not provide resources to search for posts by tag, the only type of reading posts found in the documentation, is based on ID:

/* make the API call */
FB.api(
    "/{post-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);

Where {post-id} must be the post ID.

  • Hello @Kaduamaral Facebook provides the search for hashtags but is done by hashtag-id according to (https://developers.facebook.com/docs/graph-api/reference/hashtag)

  • Cool @Lucascastro, hadn’t found it, but if you don’t know the id it doesn’t help. : / Look that link

Browser other questions tagged

You are not signed in. Login or sign up in order to post.