从 Javascript SDK 离线访问 FB graph api
如何通过 javascript sdk 查询 facebook 的图 api,查找已授予您权限(离线访问)且已存储其身份验证数据但当前未登录 facebook 的用户?
How do you query facebook's graph api via the javascript sdk for users that have allready given you permissions (offline access) and whose auth data you have stored, but who are not currently logged in to facebook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要回答我的问题,其实你可以这样做。您可以使用 FB.api 调用并通过 ?access_token= 在 URL 末尾包含访问令牌
To answer my question, you can in fact do so. You can use FB.api calls and include the access token at the end of the URL with ?access_token=
我不是 100% 确定实际执行此操作所需的代码,但我认为关键要素之一是作为应用程序而不是 Facebook 用户登录到 SDK,如文档@ http://developers.facebook.com/docs/authentication
您有示例查询吗您想使用 SDK 制作什么?
I'm not 100% sure of the code you'd need to actually do it, but I think one of the key elements to this would be logging in to the SDK as an application, rather than a Facebook User, as detailed in the documentation @ http://developers.facebook.com/docs/authentication
Have you got an example query that you'd like to make with the SDK?