Facebook Group API, members can't retrieve data - facebook

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?

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.

Is it possible to get a list of all groups I am a member of with the graph api?

As the title asks is it possible to get a list of all groups I am a member of with the graph api? I can't find anything in the docs but it seems odd that this endpoint would not be made available.
In my case I'm developing a tool that alerts the user when a post containing specific keywords is posted to a group they are a member of. The flow goes like this:
User accepts app permissions
All groups are compiled into a list
User selects the groups they want to monitor for specific posts
I use their token to periodically check their selected groups for posts that match the keyword/s. If a match is found an email/sms is sent out to the user alerting them of the matched post.
Is this possible?
You can only get a list of groups you manage, there is no way to get a list of groups you are just a member of anymore. The user_groups permission got removed, there is only user_managed_groups now.
Scraping is not allowed on Facebook, btw. If it´s not possible with the Graph API, it´s most likely not allowed.

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?

Get Facebook user work

I'm trying to write some application that scan user's group posts. When I read the group feed posts using the API I’m interested to get some information on the one who posted this post ('from' field). The graph API today gives only the id and the name of this person. I'm interested also in his work place. I tried taking the user id and to access the / resource and to get his work field , but this field is not returned. When I’m looking on the same user profile in Facebook I see his work place is public, even I’m not connected with him.
Anything I can do to get this user work with the existing Facebook API?
Normally, if the work history info is not public, you'll need the "user_work_history" permission (see https://developers.facebook.com/docs/facebook-login/permissions#reference-extended-profile).
If it's public, you can try calling the
/{USER_ID}?fields=id,work

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.