get Facebook Group Id using identifier or url

ぃ、小莉子 提交于 2020-01-12 07:19:12

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/19030282/get-facebook-group-id-using-identifier-or-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!