How to find Facebook group id by name

I have a Facebook application that I would like to read in the facebook news feed. I have a user I / O channel URL that looks like this: http://www.facebook.com/groups/music.sharing/

To access the feed, I can only use its id, for example: http://graph.facebook.com/[id of the group] / feed

I can’t find anything for this in the link, FQL does not allow the query by name, so .. I'm stuck. Any ideas?

Thanks!

+6
source share
3 answers

Impossible right now, there are several open "bugs" and another , indicating the problem ...

All the methods that I tried failed ... for example. (below will work for pages)

fql?q=select id from profile where username='music.sharing' 
+3
source

We are facing the same problem in our current project. This is not an elegant solution using the API, but for now we will use a workaround to clear the HTML address of the group’s landing page. The group identifier is displayed four times on this page in html by links. The most reliable way to search for an identifier is to search for "cid =", since it appears only once (now, anyway) on the page (what follows cid = is a numeric identifier). You will see what I mean when you look at the html pages of a group.

If you found a more effective solution, I would be grateful if you shared :)

+3
source

A possible alternative until the error resolution is: if you ask your users for permission, you can request additional permission from user_groups , and then request the api schedule http://graph.facebook.com/[id of user]/groups . The returned data has a group name, identifier, version, bookmark_order.

+1
source

Source: https://habr.com/ru/post/912860/


All Articles