问题描述
我正在为我的Facebook Web应用程序创建一个测试用户。 (apps.facebook.com / < myappname>
)。
我将Firefox浏览器浏览到以下URL :
https://graph.facebook.com/<app_id>/accounts/test-users?installed=true&的access_token = LT; APP_ID> |< app_secret>
我得到以下结果:
{
error:{
type:OAuthException,
message:(#15)本方法不支持此方法
}
}
任何想法?
谢谢
您确定您的应用程序在? (请参阅)
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET& ; grant_type = client_credentials
替换YOUR_APP_ID& 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
I'm trying to create a test user for my facebook web application. (apps.facebook.com/<myappname>
).
I browsed my firefox browser to the following URL:
https://graph.facebook.com/<app_id>/accounts/test-users?installed=true&access_token=<app_id>|<app_secret>
I got the following result:
{ "error": { "type": "OAuthException", "message": "(#15) This method is not supported for native apps" }}
any ideas?
thanks
Are you sure your application is configured correctly in http://www.facebook.com/developers? (See Canvas Tutorial)
Have you tried using the application access token? To get this use:
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials
substituting YOUR_APP_ID & YOUR_APP_SECRET with your respective values.
This will return a valid access token that you can substitute for APP_ACCESS_TOKEN in:
https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&name=FULL_NAME&method=post&access_token=APP_ACCESS_TOKEN
这篇关于创建测试用户 - 本机应用程序不支持方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!