使用组别名通过 Graph API 获取组对象?
如何使用组页面别名获取数据?
以此群组为例:http://www.facebook.com/groups/toroneradio/ 。 向 https://graph.facebook.com/toroneradio 发出请求会返回:
"message": "(#803) 您请求的某些别名不存在:toroneradio"
使用群组 ID 向图形 API 发出请求:https://graph.facebook.com/173246339390721 工作正常。
不过它对于页面来说效果很好。 查看了 FQL 组表,但名称不可搜索。 (FQL 组表) 还查找了一些文档并在 FB bugtracking 中找不到任何内容。
有没有办法以编程方式从组别名获取组 ID 或直接获取组图对象?
提前致谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
简单方法
如果您通过 Facebook 应用程序执行此操作,则只需在执行 FB Graph API 调用之前获取 FB 访问令牌即可 (阅读此处的文档,尤其是授权部分)
困难的方法
如果简单的方法不起作用(或者如果您对加入该组感到犹豫) ,这是执行此操作的可靠方法:
希望有帮助!
The Easy Way
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:
Hope that helps!