在 Facebook Graph API 中获取用户应用范围的用户 ID [英] Get Users App-Scoped user id in Facebook Graph API
本文介绍了在 Facebook Graph API 中获取用户应用范围的用户 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
随着新的 V2 Facebook Open Graph API 的出现,我需要记下登录用户的App-Scoped"用户 ID,以便在 Parse 中注册该 ID 以接收推送通知.
In advent of the new V2 Facebook Open Graph API, I need to make note of the logged in users 'App-Scoped' user ID, in order to register the id with Parse in order to receive PUSH notifications.
但是,作为登录用户,我获得了 Facebook ID.
However, as the logged in user I get the Facebook ID instead.
在文档中还没有找到解决这个问题的任何东西,所以我想我最好在这里问一下.
Haven't found anything in the docs to solve this problem yet, so thought I better ask here.
推荐答案
- 如果您在引入图形 API 2.0 之前创建了您的 facebook 应用程序,它将继续接收规范的 facebook 用户 ID
- 如果您创建了 facebook 应用程序,那么在引入图形 API 2.0 之后,它会为您提供应用范围的 id 而不是规范 id.
在这种情况下,我假设您的应用程序很旧.因此创建一个新应用程序,它将为您提供应用程序范围 ID.
In this case I assume your application is quite old.Therefor create a new app and it will give you the app scope id.
这篇关于在 Facebook Graph API 中获取用户应用范围的用户 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文