当我尝试创建 Facebook 测试用户时,我得到以下响应:
{
"error": {
"message": "Unsupported method, post ",
"type": "Exception"
}
}
我正在使用以下代码...
require_once 'config.php';//contains my $FB_APP_ID and $FB_APP_SECRET variables
require_once 'php-sdk/src/facebook.php';
$facebook = new Facebook(array(
'appId' => $FB_APP_ID,
'secret' => $FB_APP_SECRET
));
$access_token = $facebook->getAccessToken();
$url = "https://graph.facebook.com/$FB_APP_ID/accounts/test-users?
installed=true
&name=JoesTestUser
&locale=en_US
&permissions=read_stream
&method=post
&access_token=$access_token";
header('Location: ' . $url);
有没有其他人遇到过这个“不支持的方法,发布”问题?