Retrieve specifc hashtags from Facebook using Graph API - facebook

I want to get the JSON result of all the shared posts or statuses with the hashtag of my company name #company_name. How can I proceed with this. Currently I have tried with Facebook Graph Explorer Tool using the built-in access token, but this doesn't seem to give the data.

As user WizKid (Software Engineer at Facebook) states in the comments, there is no API for hash tags.
You can search through public posts using Post search in API v1.0 but this is not possible in v2.0.

Related

find public open share facebook groups using fb api

hi all i want to get facebook groups using graph facebook api but i want to filter only open share public groups (means posts don't need admin approval) i looked at https://developers.facebook.com/docs/groups-api/ and tried to read the whole docs but found nothing.
i don't need a specific langiage i just need to know if there is an endpoint which can do this in facebook graph api or any other solution
graph facebook endpoint to get this kind of groups

How to get Posts from all over the facebook?

We are developing a sentiment analysis software for a project, We tried to get post from Facebook but we need to specify the page from which we get the post unlike twitter which gives all the tweets. Can anyone guide us how to get post from all over the Facebook and if we need to subscribe Graph API for such privilege.
There is a Public Feed API: https://developers.facebook.com/docs/public_feed/
...but it restricted, and you cannot apply.
As of now, there is no way search for public posts.

How do I retrieve the posts on a Facebook page using the Facebook's Graph API?

I'd like to use Facebook's Graph API to retrieve the official posts from a given page. This means that the wall posts must be the one's made by the page's administrators and must exclude comments made on the posts. I'm aware that the base URL for the Graph API is http://graph.facebook.com/, but I'd like to use it without an access token. Is there anyway to do this?
No. You can't retrieve the posts using a given page without an Access Token.
You can retrieve posts by performing a GET request to the following end point (and of course using a valid Access Token):
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
You can also choose particular field(s) by specifying them in the URL. For example:
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
&fields=message,type,likes
You can try out this example in the Facebook Graph API explorer.

Viewing Shares information for a Facebook post using Facebook graph API

Im trying to use the Facebook graph api on rails to find for a specific post who shared it. Looking through the documentation and the api data it doesn't seem that this information is available for a specific post. I am able to get the likes and comments information, however not the shares.
Would anyone know whether the current Facebook Api gives that information? Thanks
Using Graph API, do a request to graph.facebook.com/POST_ID?fields=sharedposts.
Iterate through the resulting array to get the sharers' identity.
Example in Python here.

Accessing Facebook Likes and Interests with the old rest api

In their recent changes, Facebook now links your likes and interests with community and fan pages. How can I retrieve this information using the old rest API and Facebooker. I tried things like this to get the music preferences :
facebook_session.user.music
but I get a blank string instead of the relevant connections. Is it mandatory to use the new Graph API in order to make this work?
I believe this data can only be accessed via the Graph API.