Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 获取LinkedIn连接时出现问题_Iphone_Ios_Ipad - Fatal编程技术网

Iphone 获取LinkedIn连接时出现问题

Iphone 获取LinkedIn连接时出现问题,iphone,ios,ipad,Iphone,Ios,Ipad,我正在使用ios SDK获取LinkedIn连接 网址:“ 当我发送请求时,我收到以下信息: "errorCode": 0, "message": "Access to connections denied", "requestId": "M03UXH6LM7", "status": 403, "timestamp": 1371546057294" 我被困在那里。请帮助。这是解决方案: LOAMutableURLRequest *request = [[[LOAMuta

我正在使用ios SDK获取LinkedIn连接

网址:“

当我发送请求时,我收到以下信息:

"errorCode": 0,   "message": "Access to connections denied",   "requestId": "M03UXH6LM7",   "status": 403,   "timestamp": 1371546057294"
我被困在那里。请帮助。

这是解决方案:

LOAMutableURLRequest *request =
    [[[LOAMutableURLRequest alloc] initWithURL:requestTokenURL
                                     consumer:self.consumer
                                        token:nil
                                     callback:linkedInCallbackURL
                            signatureProvider:nil] autorelease];

    [request setHTTPMethod:@"POST"];

    LOARequestParameter *nameParam = [[LOARequestParameter alloc] initWithName:@"scope" value:@"r_fullprofile+w_messages+r_network+r_emailaddress"];

    NSArray *params = [NSArray arrayWithObjects:nameParam, nil];
    [request setParameters:params];

    LOARequestParameter * scopeParameter=[LOARequestParameter requestParameter:@"scope" value:@"r_fullprofile w_messages r_network r_emailaddress"];

    [request setParameters:[NSArray arrayWithObject:scopeParameter]];

    LOADataFetcher *fetcher = [[[LOADataFetcher alloc] init] autorelease];
    [fetcher fetchDataWithRequest:request
                         delegate:self
                didFinishSelector:@selector(requestTokenResult:didFinish:)
                  didFailSelector:@selector(requestTokenResult:didFail:)];

是的,终于完成了。在代码中使用两次r_网络请求。它会工作的。