使用标识符或网址获取Facebook组ID [英] get Facebook Group Id using identifier or url

查看:206
本文介绍了使用标识符或网址获取Facebook组ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



例如: http://www.facebook.com/groups/chennaifoodies/ 应该给组ID 194462073956868.
是通过使用上面的URL或标识符(如chennaifoodies)来获取组ID的方法?



如果我尝试了 https:// graph。 facebook.com/chennaifoodies ,那么它给出了粉丝的页面ID。



我认为'wallflux'已经做了一个精彩的脚本,所以我需要一个这样的脚本来组合id。



有没有办法使用图形API或fql获取组ID?



谢谢。 >

解决方案

我不认为您可以从您使用组名用户名的网址获取组ID



但是,你一定可以得到与url相同的


< a href =http://graph.facebook.com/search?q=chennaifoodies&type=group&access_token=ACCESS_TOKEN =noreferrer> http://graph.facebook.com/search?q=chennaifoodies& type = group& access_token = ACCESS_TOKEN


是的,您需要一个活跃的用户访问令牌才能查询。



或者,图API(同样的事情) -

  / search?q = chennaifoodies 

演示


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.

解决方案

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

这篇关于使用标识符或网址获取Facebook组ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆