Facebook Application's Groups - facebook

In this Link, it's described how to get, create, or delete groups that belongs to the application. But I cannot see these created application groups under my App's page. Where do I have to look for? Am I only able to get these groups by using graph api or are they displayed on App's facebook page?

The reasons you're not getting to see the group are;
- The group privacy is 'Closed', and
- You're not a member of the group
So, if your group's privacy is "Open", you can directly request;
https://www.facebook.com/groups/{GROUP-ID}
If not, you first need to join the group. To do so, request;
POST https://graph.facebook.com/v2.3/{GROUP-ID}/members?member={UID}&access_token={APP_TOKEN}

Related

Access private facebook group's posts using Graph API

I've been trying (with little success) for a while now to get all the posts from a private group that I am in and display them on our website so that the people with
out Facebook can still see them. I know this is possible with a public group (which our group cannot be), but is it possible with a private group?
I've tried access tokens on the Graph API Explorer, but that just returns:
{
"data": [
]
}
I also read that to access private groups the user needs to log in as a user in that group. However, this would be pointless as the whole point in trying to do this is to allow people without facebook to see the group's posts.
Thank you all
Ben
The whole point of a "private" group is that only logged in group members can see the feed.
That being said, you can only use the permission user_managed_groups to get the group feed with the /group-id/feed endpoint. You need to use a User Access Token for this, with the correct permission, and this only works as group admin. You can't read the feed of a group just because the user is a member of the group - at least not anymore.

How to retrieve user content of a Facebook group through the api

is there anyway to query the Facebook api for a particular groups user content?
the Facebook api groups feed only retrieves posts by the group(admins) itself.
If it can be done , I don't seem to be able to see it in the documentation
I don't think the group-id/feed only return the group admins' post. In my case I can see exactly the same content as in the group's timeline.

Is there a way to get the number of the user's unsubscribed friends?

That's what I need, to get the user's (with an Access Token of course) unsubscribed friends? I'd be great to get an array with all the users, but a simple count would do the job.
I see here that natively Facebook provides this option: In the main page, the Newsfeed option has an Edit button, there you can see the number of unsubscribed friends, no way that it's in the API?
We can access this setting on frontend by going to "News Feed" > "Edit Settings" then we get "Hide posts from" with the listing and the count. Can I access this data via API?
You can do it by accessing the "user_subscriptions" and "friends", using an access token, and removing the "user_subscriptions" results from the "friends" results so you are left with the friends that are unsubscribed.
I don't think facebook offers a parameter to get unsubscibed friends on its own.

API for creating groups and adding friends to it

Is there any API using which my application can create a new groups and also add friends to that group. and should be able to view the comments on that group add comments to that group.
Are there any API's supporting this
The Facebook API doesn't include methods to create groups. Apps can read group information and post to a group's wall, but not create a group. You can read more on the Facebook Developer pages about the methods available for groups.

How can I integrate profile information of Facebook group members on an external website?

the question is in the title.
I have been assigned to find out if the following is possible:
I create a group on Facebook. Selected people become members.
On a external website, I want to display all group members with their basic info - picture, name, link to public profile.
I have skimmed the Facebook Dev pages, and so far it seems to me that this is not possible simply with Social Plugins. Do I have to write some sort of App for Facebook? It came to my mind, that there should probably some permission from the group members to display them, is that right? But this probably does only work with an App, not a group. So do I have to create an App and use the Graph API to include the data on the website?
Yes, you will have to create an app. The facepile plugin will show faces, but I do not believe you can target a group with it.
It should be a reasonably straightforward app to create: you will need the user_group permission and I believe that would be it.
If the group is public, just access it by going to https://graph.facebook.com/groupid and to get the members, access https://graph.facebook.com/groupid/members
If the group is private or closed, you will need to create an app so that you can get an access token. Look at their authorization documentation on that (you will probably need to create a temporary dummy website to do the redirects to Facebook and record the token then grant you). You will probably need offline_access to run the call over and over.
With that access token, access the groups api using the url format posted above and with the access_token appended as a query string parameter.