通过Facebook Graph API查询测试用户 [英] Query test users through Facebook Graph API

查看:83
本文介绍了通过Facebook Graph API查询测试用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook Connect创建一个应用程序。我已经使用 http://developers.facebook.com/blog/post/中的技术创建了一个测试用户429



我可以以新创建的用户身份登录Facebook,但通过Facebook Graph API无法访问用户的基本信息。对于真正的用户,我可以使用 http://graph.facebook.com/ 等URL。这不符合我的测试用户。



我使用CURL尝试了相同的URL,带有和不带有http和https的应用程序访问令牌。



有没有人知道Facebook测试用户是否可以通过图形API进行查询,如果是这样?

解决方案

您可以仅使用
查询另一个测试用户的访问令牌的测试用户。


我不知道如何有用那就是如果应用程序使用图形API。这意味着应用访问令牌不足以查询测试用户。我可能不喜欢它,但似乎这是答案。


I am creating an application with Facebook Connect. I have created a test user using techniques from http://developers.facebook.com/blog/post/429.

I can log in to Facebook as the newly created user, but can't access even basic information for the user through the Facebook Graph API. With real users, I can use URLs like http://graph.facebook.com/. This isn't working with my test user.

I have tried the same URL using CURL with and without an application access token with both http and https.

Does anyone know if Facebook test users are queryable through the graph API and if so how?

解决方案

Thanks for the help Matt. I finally sent a message to the software engineer at Facebook that wrote the article I linked to in my question and he gave me the answer.

You can query a test user only with the access token of another test user.

I don't know how useful that is if the app uses the graph API. It means the app access token isn't sufficient to query test users. I may not like it but it appears that's the answer.

这篇关于通过Facebook Graph API查询测试用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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