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?
Related
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.
I have created an app in Javascript to allow members of a facebook group (closed) to get event information. I have gotten the app approved by facebook and added it to the group, however only admins of the group are able to retrieve the required data. Regular members as well as moderators are unable to retrieve the events.
Is there a way of doing this that I just haven't found yet? Or is it not possible at all?
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.
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.
I need to do something similar to the Facepile social plugin for a site I'm working on. The problem is the client does not have have a Facebook page, but instead has a Facebook Group (with some 4000+ members).
I guess I could urge the client to move their group members to a page, and I might do that in the future. But before I do I want to research how we're going to do Facebook-integration more thoroughly. For now I just need a quick fix.
While it's possible to list group members (with a 500 limit), your main issue is going to be the identification of your visitor.
The facepile plugin, like the other official plugins, is automatically connected if the current user has an active facebook session (because it's running on the facebook.com domain)
That allows it to display things like "xxx of your friends are already fan", even if the user is not logged to your site.
But if you program your own, you won't be able to access the current facebook session, you'll need to create your own session, which means you'll have to create a facebook application and have the user login to it before you can know how many of his friends are members of the group.
Also, there is no way to use the API to make a user join a group. This action has to be taken manually by the user.
Without an active user session, at best, you could list a random number of group members (using your own session key with the offline_access perm) and a link to the group.
If you want to list members of a group, here is the FQL query:
select name from user where uid in (select uid from group_member where gid = 146797922030397 limit 50)