如何在AWSAmazon身份池ID中使用facebook用户身份

时间:2016-06-08 10:04:27

标签: objective-c aws-ios

-(void)loginViewShowingLoggedInUser:(FBLoginView *)loginView
{
   AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc]initWithRegionType:AWSRegionUSEast1 identityPoolId:@"us-east-1:xxxxxxxxxxxxxxx-ff6eaba0241e" identityProviderManager:pool];      

   NSString *token = FBSession.activeSession.accessTokenData.accessToken;

   credentialsProvider.logins = @{ @(AWSCognitoLoginProviderKeyFacebook): token};
}

1 个答案:

答案 0 :(得分:2)

您可以从AWSAmazon用户池验证用户,而不是联合池。