Facebook用户ID。哪一个? [英] Facebook user ID. Which one?
问题描述
ID
...那么我应该使用哪个? 可能需要更多的解释^^
- 我找到的第一个userId是
4101606156331
( https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%3Ffields%3Did%2Cname& ; version = v2.0 ) - 第二个是
1768286839
( https://graph.facebook.com/chapit.nicolas )
哪个是正确的?为什么有两个 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这些都在文档中: 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 ^^
- The first userId that I found is
4101606156331
(https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%3Ffields%3Did%2Cname&version=v2.0) - The second one is
1768286839
(https://graph.facebook.com/chapit.nicolas)
Which is the correct one ? And Why there are two ID
s ? (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
and260226614127613
:empty response
4101606156331
and320233158126958
:empty response
1768286839
and260226614127613
:Error The global ID 1768286839 is not allowed. Please use the application specific ID instead
1768286839
and320233158126958
: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屋!