Add Friends to Group on Facebook - facebook

Ive looked through the API and dont see it, but I thought Id ask anyway. Can I add users to a group through the API?

It is not possible to add users to a group via the API.

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 create Facebook group using graph API?

I want to create Facebook group using Graph API.
Actually what i want to do: I am having a course module, so when admin add a new course i want to create a group in Facebook with course name.
Can you please help how to create Facebook group using Graph API?
Sorry, but it seems like it is not possible to create "Group" or "Event" via Facebook API. Probably closest option for you is to create a new page or post.

How to get group-id in facebook Graph API

My goal is to get the members of a facebook group. Looks like I can do it but I need to know the group-id
How to get that? For example - what would be the group-id for this group and how to find it: https://www.facebook.com/groups/pythonears/?
Authorize with the user_managed_groups permission, use /me/groups to get all groups you manage and you will have the IDs. The members of groups you don´t manage should be none of your business anyway.
If you don´t manage the group, you can use the Search API, this would be the API call: /search?type=group&q=pythonears
Be aware that you may also get other groups, if they have the search string in their name.
Those are the only options you have. Everything else would be scraping, which is not allowed on Facebook - that´s how platforms like lookup-id.com do it.

Get join date of a Facebook user

Is there a way to get the join date in facebook API?
Im looking on the API docs but I can't find anything.
reason: we don't want a user to register using new created account in our site to avoid multiple dummy accounts? Is there anyway to do this?
Thanks!
Unfortunately there is no such field in the Graph API. Have a look at
https://developers.facebook.com/docs/graph-api/reference/v2.1/user/

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.