1
-(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};
}
4

1 に答える 1