Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get Facebook Group Id using identifier or url

I would like to get a facebook group id by using a URL or specific identifier.

For ex: http://www.facebook.com/groups/chennaifoodies/ should give group id 194462073956868. Is there way to get the group id by using above URL or identifiers like 'chennaifoodies'?

If I tried https://graph.facebook.com/chennaifoodies, then it gives the fan page id.

I think 'wallflux' has done a wonderful script, so I need a script like that to get group the id.

is there any way to get a group id using graph api or fql?

Thanks.

like image 936
Prabhu Avatar asked Sep 26 '13 13:09

Prabhu


People also ask

Do Facebook groups have URL?

Your Facebook Group link or URL is one of its most visible parts after the About page, name and cover image, and it is also fully customizable. It is the only unique identifier for your group online (two groups can have the same name) and it can help you rank higher on Facebook's search results.

What is FB Group ID?

If your page URL structured like this: https://www.facebook.com/smashballoon-1234567890 then the ID is 1234567890. If your page URL is structured like this: https://www.facebook.com/pages/smashballoon/123654123654123 then the Page ID is actually the number at the end, so in this case 123654123654123.


1 Answers

I don't think you can get the Group ID from the url you mentioned with the group username.

But, you surely can get the same with the url:

http://graph.facebook.com/search?q=chennaifoodies&type=group&access_token=ACCESS_TOKEN

Yes, you'll be needing an active user access token to query this.

Or, the graph API (the same thing)-

/search?q=chennaifoodies

Demo

like image 159
Sahil Mittal Avatar answered Oct 22 '22 07:10

Sahil Mittal