find public open share facebook groups using fb api - facebook

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

Related

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.

Is it possible to retrieve list of public facebook profiles through the Graph API?

Is it possible to search for public facebook profiles in another app using graph API? So far what I've seen in documentation is that you need to know the User ID. I was thinking more in the lines of :
1) Enter Name
2) Get list of relevant profiles associated with that name
You could use the /search endpoint of the Graph API (https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0#search)
GET /search?q=barack%20obama&type=user

Retrieve specifc hashtags from Facebook using Graph API

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.

How to get news feed exactly how it appears in facebook homepage newsfeed using api

I am using /me/feed and /me/home to get my feed and my homepage feed respectively.
But the /me/home only shows updates from my friends. I am following many people but not friends with them. My facebook homepage shows all the updates including my friends and the people I am following.
How to get the news feed exactly like the one appears in the fb website?
As #Fabio said, the Graph API does not support it as of now (and I don't think it'll do that in the future). You can only obtain yours and your friends' feeds using the Graph API.
In order to obtain the feeds from a specific person who's not in your friend list, you need a valid User Access Token from that user with a read_stream permission.
There is however a way to read the public feeds of user status updates and page status updates as they are posted to Facebook. This can be done by using the Public Feed API. This will include all feeds that have their privacy set to ‘public’ are included in the stream. Also, you cannot apply to use the API at this time as its access is limited. Its page says:
Access to the Public Feed 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.
But I think it's just a fancy way of saying that this API is not free and you'll be charged few dollars (which you can find out by getting in touch with someone at Facebook) for using this service.

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.