Access private facebook group's posts using Graph API - facebook

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.

Related

Get Facebook group posts without being an admin

Is there a way to get all the posts from a public group on facebook without the graph api/group api?
I am a member in the group but I'm not an admin so I don't have the permissions to do it with the formal facebook api.
But I can access all the data with my browser so I can see all the posts throw the web GUI.. So I thought there's might be a way to download/get all the posts from a group without the need to be an admin..
Thanks!
Is there a way to get all the posts from a public group on facebook without the graph api/group api?
Circumventing the APIs would not be allowed to begin with; you have to use those, if you want to gather any data by any automated means, everything else would be against the ToS.
There is no way to access group posts via API, if an admin does not “install” your app in the group first.
The group visibility does not matter in that regard, it is the same for private or public.

How to retrieve my own comments from a public group on Facebook

I am attempting to retrieve my own comments from a public group on Facebook, using the Facebook Graph API. This is a public group of which I am not an administrator.
I have attempted a number of strategies, but to no avail so far. I keep hitting brick walls, e.g.:
The xxx'yyy' is only accessible on the User object after the user grants the 'user_managed_groups' permission.
If I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way to retrieve those programmatically through the Graph API.
Am I mistaken?
UPDATE
On the chance that I am indeed mistaken, I have sent the following feedback to Facebook:
I would like to b able to retrieve my own comments from a public group on Facebook, using the Facebook Graph API. This is a
public group of which I am not an administrator.
At the moment, the Graph API documentation (v2.12) states that to read the feed I need to provide a user access token for an Admin of
the Group with the user_managed_groups permissions.
Please note that if I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way
to retrieve those programmatically through the Graph API.
Group feeds are only accessible with an access token of a group admin now.
Please note that if I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way to retrieve those programmatically through the Graph API.
The main difference is, that you are one single person looking at your own data. But if I create an app and have a hundred thousand people log in to it and it was possible to read that data, then I could accumulate it for whatever shady purpose ...
(Now with the feed of a public group that might seem a little over the top, I know - but I think the general idea is to make automated data collection harder.)

Can I read posts from a group where user is not admin?

I'm using Facebook Graph API and I need to fetch the feed of a group where the logged user is not an admin. Is it possible?
In the documentation only talks about public groups and groups where user is admin (user_managed_groups permission). But, what about those groups where is member but not admin?
After posting in a Facebook Developers group, I found out that, actually, API does not allow that operation, so far.

Facebook Group API

I want to build a small app, which helps people to learn the names of members of any facebook group they are part of (simular to a vocabulary trainer). Therefore I want to access the images and names of people in a group, but I have problems understanding the Facebook API-Documentation for Groups.
The Documentation says:
Public groups can be accessed with any token (but I also want to access not public groups)
user_managed_groups permission can be used to read the group content for a group in which the user is an admin (But what if the user is not the admin, just a normal member?)
So is there no way to access the group members of a closed group by using the User Access Token of a not-admin facebook user, even that he normaly would be able to see this information using the website or app?

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.