extendAccessTokenIfNeeded如何在Facebook中运行?

时间:2012-05-10 09:33:17

标签: iphone facebook sdk facebook-access-token

我按照文档Extending the Access Token扩展访问令牌,但遇到以下错误,谁可以指出哪里不正确:

我使用以下代码登录facebook:

NSMutableDictionary *params = [NSMutableDictionary dictionary];
[params setObject:fb_api_id  forKey:@"client_id"];
[params setObject:fb_required_perms forKey:@"scope"];
[facebook dialog:@"oauth" andParams:params andDelegate:self];

错误Domain = facebookErrDomain Code = 10“操作无法完成。(facebookErrDomain错误10)”UserInfo = 0x7021810

 {request_args=(

    {
        key = method;
        value = "auth.extendSSOAccessToken";
    },
        {
        key = sdk;
        value = ios;
    },
        {
        key = "sdk_version";
        value = 2;
    },
        {
        key = "access_token";
        value = AAAAAK9pJJuEBAJ5VBsWIMjfdv6s9q6bXjO4AdO3diZA6s9ABEqS1VHNG1N5ynbvxyXVrFxTZAQ4RS8vww5hFPgb86TamBD0yjqPN75xopr8ACwqu8X;
    },
        {
        key = format;
        value = json;
    }
), error_msg=The access token was not obtained using single sign-on, error_code=10}

0 个答案:

没有答案