创建测试用户 - 本机应用程序不支持该方法

时间:2011-08-16 08:41:33

标签: facebook facebook-graph-api

我正在尝试为我的Facebook网络应用程序创建一个测试用户。 (apps.facebook.com / <myappname>)。

我浏览了我的firefox浏览器到以下网址:

https://graph.facebook.com/<app_id>/accounts/test-users?installed=true&access_token=<app_id>|<app_secret>

我得到了以下结果:

{    “错误”:{       “type”:“OAuthException”,       “message”:“(#15)本机应用不支持此方法”    } }

任何想法?

感谢

1 个答案:

答案 0 :(得分:2)

您确定在http://www.facebook.com/developers中正确配置了您的应用程序吗? (见Canvas Tutorial

您是否尝试过使用应用程序访问令牌?要使用它:

https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials

代替YOUR_APP_ID&amp; YOUR_APP_SECRET与您各自的值。

这将返回一个有效的访问令牌,您可以在其中替换APP_ACCESS_TOKEN:

https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&name=FULL_NAME&method=post&access_token=APP_ACCESS_TOKEN
相关问题