Facebook用户ID。哪一个? [英] Facebook user ID. Which one?

查看:185
本文介绍了Facebook用户ID。哪一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑...我尝试设置一个fql粉丝页面查询,在我的搜索中,我发现我的用户有几个 ID ...那么我应该使用哪个?



可能需要更多的解释^^





哪个是正确的?为什么有两个 ID ? (可能更多...)



有人可以确认我是否正确的 ID 260226614127613或320233158126958 )是CodeRougeAuto 页面的正确版本?因为我喜欢这个页面,但是当我尝试知道我是否喜欢在图形浏览器工具(有效的令牌)中使用fql的页面时,我得到这个:

  SELECT uid 
FROM page_fan
WHERE uid = UID AND page_id = PAGEID




  • 4101606156331 260226614127613 空响应

  • 4101606156331 320233158126958 空反应

  • 1768286839 260226614127613 错误全局ID为1768286839不被允许。请使用特定于应用程序的ID

  • 1768286839 320233158126958 错误全局ID为1768286839不被允许。请使用特定于应用程序的ID



感谢您的宝贵帮助!

$ b你所看到的就是所谓的全局 app-scoped user_ids在内的$ b

解决方案。如果您使用图形API的v1.0,则user_ids将是全局。如果您使用v2.0,那么他们将是应用范围,如第一个例子。



这些都在文档中: https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids


I'm very confused... I try to setup a a fql fan page query, and in my search, I found that my user have several ID... So which should I use ?

Maybe more explaination is needed ^^

Which is the correct one ? And Why there are two IDs ? (maybe more...)

Someone can confirm me that which is the right ID (260226614127613 or 320233158126958) is the right one for the page CodeRougeAuto ? Because I like this page but when I try to know if I like the page with fql in Graph explorer tool (with a active token) I got this :

SELECT uid 
FROM page_fan 
WHERE uid=UID AND page_id=PAGEID

  • 4101606156331 and 260226614127613 : empty response
  • 4101606156331 and 320233158126958 : empty response
  • 1768286839 and 260226614127613 : Error The global ID 1768286839 is not allowed. Please use the application specific ID instead
  • 1768286839 and 320233158126958 : Error The global ID 1768286839 is not allowed. Please use the application specific ID instead

Thank you for your precious help !

解决方案

What you see are the so-called global and app-scoped user_ids. If you're using v1.0 of the Graph API, the user_ids will be global. If you use v2.0 they will be app-scoped, as in your first example.

It's all in the docs: https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids

这篇关于Facebook用户ID。哪一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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