How do I find my Facebook group ID? - facebook

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.

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

You can try https://commentpicker.com/find-facebook-id.php to find a Group ID by entering the FB Group URL. Most of the other online tools don't work anymore.
You can also find it in the source code like mentioned in the other comments. Go to the group page, right click and choose "View Source code" and search for fb://group/. The Group ID will be displayed after the slash or after ?id=

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.

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

Related

How to get Facebook group created date using Graph API

As I can get other details of group like members, feeds etc, but being an admin, I want a created date of group using graph API. Please help me...
Thanks.
There is no straight option, but there are two workarounds to achieve something (it's not 100% perfect):
you can get the date when the group was last updated: Group, using updated_time field
second option, you can create a doc, that the group was established, and when you will have created doc, you can access created_time field, on group docs: Group-Doc
Hope, that helps.

Facebook - interests required List<unsigned int32> although Page ID are strings

I currently developed a solution for custom uploading videos for specific customers.
One of my customers need the ability to specify "interests" for a video he upload.
From the API documentation, interests are:
interests
list
One or more IDs of pages to target fans of pages.Use type of page to get possible IDs as find Targeting Options and use the returned id to specify.
There is some mis-documentation regarding this feature: "find Targeting Options" does not talks about type=page.
But, still, I can search for page, using the "search" endpoint: /2.5/search?q=gsw&type=page and get the ID of the page.
As to my understanding, I can specify a page, for example "Golden State Warriors" fan page, specify its id, and then every user which follows this page will be considered as interested in my post.
So, I think my flow should be:
1) Search for the requested page using the "search" api. Get the page's IDS.
2) When creating the video, specify the ID in the "interests" parameter list.
Now, I need to know how to specify the ID in the interests list - The documentation says it list, but the page ID as a number string...
So in conclusion, I would like some help in verifying that all that I have written is correct and make sense, and also to know how to get the int32 id of a page - is it just mistake in the documentaion?
Thanks!

Group page not showing some members name from Graph API

Could someone explain to me why a few of my members from my group page have blank data for their names but their Facebook ID shows up just fine?
An example of what I am talking about would be:
<user>
<id>xxxxxxxx</id>
<name>Bobby Bushay</name>
</user>
And the ones that show the fb id but not the name look like this:
<user>
<id>xxxxxxxxxxxx</id>
<name> </name>
</user>
So I figure it has something to do with their privacy settings maybe? If so, where would I need to direct them in order to change that privacy setting so it can be read? Oddly enough though when I am using the Facebook Graph API Explorer and I click on their ID it gives me all their info including their first and last name?
What happens if you go to the User's profile page? E.g. facebook.com/{profile_id}
Its could be that those users are preventing their information being shared to the group / or members of it.
Ask the user to edit the How people bring your info to apps they use settings on their account, found under Privacy Settings > Apps, games and websites. Maybe that will make a difference. In particular, check if the Bio checkbox is checked.

How to find Facebook group id by name

I have a Facebook application, which I would like to be able to read facebook group feeds.
I have a user-input feed url, that looks like this: http://www.facebook.com/groups/music.sharing/
To access the feed though, I can only use its id, like this: http://graph.facebook.com/[id of group]/feed
I cannot find anything for that in the reference, FQL doesn't allow querying by name so .. I'm stuck. Any ideas ?
Thanks!
Its not possible right now, there are multiple open "bugs" and another stating the issue...
All the ways I have tried have failed... e.g. (below would work for pages)
fql?q=select id from profile where username='music.sharing'
We are facing this same problem on our current project. It is not an elegant solution that uses the API, but for now we will be using a workaround by scraping the HTML of the group landing page. The group ID number appears four times on this page in the html via links. The most reliable way to search for the ID is to search for "cid=" as it only appears once (right now, anyway) on the page (what follows cid= is the numerical ID). You'll see what I mean when you examine the html of a group page.
If you found a more efficient solution, I'd be grateful if you shared :)
A possible alternative until bug resolution could be: if you are asking your users for permissions then you can ask for the additional permission, user_groups, and then query graph api http://graph.facebook.com/[id of user]/groups. The returned data has group name, id, version, bookmark_order.

Fetch a group object with Graph API using group alias?

How can i fetch data with group page alias ?
Take for example this group: http://www.facebook.com/groups/toroneradio/.
Making request to https://graph.facebook.com/toroneradio gives me back:
"message": "(#803) Some of the aliases you requested do not exist: toroneradio"
Making request to the graph API with the group's id: https://graph.facebook.com/173246339390721 works OK.
It works great for pages though.
Looked at FQL groups table but name is not searchable. (FQL Groups table)
Also looked for some documentation and in FB bugtracking, couldn't find anything.
Is there way to get programaticly the group id from group alias or directly to get Group graph object?
Thanks, in advance!
The Easy Way
If you haven't done so, join the Facebook group which you want to fetch the group ID
Use the Facebook Graph API explorer
Access your list of groups via http://graph.facebook.com/me/groups
Search for the group and the ID will be listed in the object
If you are doing it through your Facebook application, all you need is to grab an FB access token before you do the FB Graph API call (read up the documentation here, especially the Authorization section)
The Hard Way
In case the easy way doesn't work (or if you feel iffy in joining the group), here's the sure-fire way to do so:
Start up Firebug and enable the "Net" tab
Bring up Facebook - check that the Net panl will show all the HTTP requests that's happening
Click the "Clear" button so that you have the panel in the blank slate
Click on the link of the Facebook group that you wanted to retrieve the Facebook ID
Look out for a GET request to generic.php - that would be the very first request, but hunt it down if it's not. Click on the [+] box to expand the details
Click on the "Parameters" tab and you'd see a key-value dictionary of the request. There'll be two fields in there called "key" and "sk", both of which would carry the same value like "group_1656399367890"
The group's ID will be the numeric value after "group_" (in this case, it'll be 1656399367890)
Hope that helps!
By using FQL:
SELECT id FROM profile WHERE username='groupname' AND type='group'
Just figured this out! Do this: http://graph.facebook.com/search?q=[ALIAS]&type=group