I am working on facebook api using php. I did a functionality to get the search feature in facebook (i.e) by user, group, etc.
Now i am in need to invite the search result user and join that search result group.
I tried more in google but i am not getting any source to join a group.. Is it possible to do that using facebook api?
Please help me on this..
Yes you can send invites to the users to join a group. Here's the documentation.
But the condition is that:
An app access token can invite any app users to a group created by that app.
The request must be made with an app access token and this same app must have created that group. So, you cannot send request to the friends if that group was not created using an app.
Edit:
If you are asking that a user can join the group with Graph API, it's (of course) not possible!
Related
hi I'm a facebook api php developer. I developed some apps with me/friend . now this return friends only for my admin account. when another user use this app, it retune nothing.
why this return friends only for my admin account.
if should I get special permission how can I get it.
could you any one please help me.
Make app live
You need to make the app and all its live features available to the general public. This can be done by making the app live by going to https://developers.facebook.com, select Apps --> Your App Name --> 'Status & Review'.
Login Review
You might need to do a Login review.
Review is not required to ask for the three basic permissions: public_profile, user_friends and email. In order to use Facebook Login in your app and access additional elements of a person's Facebook profile, you will need to submit your app for review. If your app is not approved or you don't submit for review, people will not be able to use Facebook Login in your app.
https://developers.facebook.com/docs/facebook-login/review
According to Facebook Graph API for Friends you need user_friends permissions which states that:
Only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.
Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app.
Read change log
You can debug me/friends endpoint as well.
I am trying to post to a group in facebook that is managed by me via a facebook app. The funny thing if I log into facebook with my the admin account of the app, then I can see the posts in the group, but if I ask some friend who is also in that group, then he cannot see the posts made via the app. I guess, my app is still running in the Sandbox. Could you let me know if Facebook allows to make automatic posts to a Facebook group where I am the admin? Essentially, my group is about housing offers in a city and I'd like my app to post automatically new offers into my group such that other people can see them as well.
Thanks a lot!
There shouldn't be any restrictions for posts showing up within a Group when posting updates via the API. It could be that posts needs to be approved by the Group Administrator before they appear to users.
If you app is in Sandbox Mode, updates won't appear until you make the app public. You can do this without having to submit permissions for review. As soon as the app is made public, the posts will appear within the group.
If you are the administrator of the group, check the Group Settings to see if posts require approval.
Are there any built-in "Group add request" actions that come with the facebook graph API? Like the built-in Like action? That happens with a users request. I would like to do this from an external website, just like the Like action works
For example the user is active in a forum, where different categories have their own facebook group page, and they would like to access the group without having to actually log on facebook and make the request.
From the docs:
Invite User
Applications can invite users to a group by issuing a POST request to /GROUP_ID/members/USER_ID with an app access_token.
Note that user being invited must be a user of the application. The user will be sent a notification saying that they have been invited to the group. The notification will take them to the group page. Users can only be invited once. Subsequent invites will fail.
So you the user will have to authorize your app, and then you can do it.
You have Graph Api, and you have the token of the user. When a user is member of a group, and we know the group ID.
Is there a way to get the online users count of a Facebook group via the API?
Short answer to your question:
Is there a way to get the online users count of a Facebook group via
the API?
NO, you can't.
The closest result you can get is by using the members connection of the group object:
All of the users who are members of this group (can only currently
return the first 500 members).
I am working on a wordpress website where I need to get the number of members in a particular linkedin group.
The person viewing the website will likely not be logged into linkedin, or ever have a profile.
This is simply for a Check out our linked in group and join 12345 other members! type thing.
Is there a simple way to get the number of members in a linkedin group?
This can be PHP using a rest API, a Javascript API, or whatever works as long as it can work with wordpress.
You would pull the group membership totals from the LinkedIn API via the Groups API.
Unfortunately, in order to comply with the API platform guidelines, you can only retrieve and show the membership totals of a group to the user if the user has authenticated your application against the API via OAuth.
Once you have authenticated the user, you can retrieve the information from the Groups API via a call along the lines of:
http://api.linkedin.com/v1/groups/XXXX:(id,name,site-group-url,num-members)
Where XXXX is the group ID.
http://blog.linkedin.com/2011/11/10/groups-analytics/
Can this information be useful for you?