How do I know my Facebook ID - I have two?? A Long "1015443**********" and short "6045*****" one

时间:2016-02-03 03:53:27

标签: facebook facebook-graph-api

I'm using the tool (SimpleSAMLphp) to sign in to Facebook. The attributes I have indicate my Facebook UID is "1015443**********", but when I use tools online (http://findmyfbid.com) I'm seeing a shorter "6045*****" number. I just need to ensure I'm using an ID that will not change for this user (as I understand that users can change their email in Facebook). Ideally I'd rather use the long number as that's what I have currently from the authentication tool.

1 个答案:

答案 0 :(得分:1)

您使用findmyfbid.com获得的ID是您的“真实”ID,但他们正在做一些Facebook上不允许的事情:刮痧。因为您只能从个人资料页面的源代码中获取“真实”ID。

您在Apps中获得的ID是“App Scoped ID”,它是您在Apps中获得的唯一ID。每个App都不同。查看更改日志以获取更多信息:https://developers.facebook.com/docs/apps/changelog#v2_0