My Facebook Group Url is: http://www.facebook.com/groups/284064464943140/ I've read that the group ID is in the Url labelled "id=" or "groupid=" but assume this has changed since there is no such tag in my Url. I would like to use the group id to insert a group feed into our group website. Thank you
For finding any facebook group_id or page_id or user_id go to inspect element of page and find these in meta tags.
Group Id
fb://group/Here_is_your_group_id
Profile user_id
fb://profile/here_is_your_user_id
Page Id
fb://page/here_is_your_page_id
try at http://lookup-id.com/ , get facebook id and group id
Try http://wallflux.com/facebook_id/, it will guide you through it,
If you need the id for more group for which you are admin, a faster method will be to use facebook's Graph Explorer tool. You need to get access token for 'user_groups' 'user_managed_groups' and make a request by adding groups field:
me?fields=groups
click submit. This will print all of the groups you are member of and corresponding IDs.
Update: Sorry folks, it seems that Facebook is pulling out the API for groups you don't manage. This whole topic might be obsolete.
Using view-source, you get 284064464943140
as the ID
, but I'm not sure what to use that, or "post_form_id":"6523b06b74b670d8e6a87ab3ab2a6370"
which is a line below it.
You can look for post_form_id in the source code on Facebook but that is not always accurate.
For groups that do not have the ID in the Facebook URL you can get the page or the group ID using this free simple online tool: http://whatismyfacebookid.com
1) Go to Facebook (www.facebook.com)
2) Click on the little triangle on the top right
3) Select "Manage Groups"
4) Ensure you are on the "Groups" not "Discover" tab (check top left for that)
5) Click on your group
6) Look at your URL from your web browser, it will display something like http://www.facebook.com/groups/12345/about
12345 would be your group in this case.
I hope this helps
Regards
Heider
Based upon graph api, you can get group ids as follows:
$facebook->api( '/'.$userId.'/groups', 'GET', array( 'access_token=' => $userToken ));
by iterating through its results.
来源:https://stackoverflow.com/questions/8957340/how-do-i-find-my-facebook-group-id