I can get identity id with Facebook token from Amazon Cognito by using Aws\CognitoIdentity\CognitoIdentityClient of Amazon PHP SDK ( https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.CognitoIdentity.CognitoIdentityClient.html ).
$identityClient = AWS::createClient('CognitoIdentity');
$idResp = $identityClient->getId(array(
'AccountId' => 'MY_ACCOUNT_ID',
'IdentityPoolId' => 'MY_IDENTITY_POOL_ID',
'Logins' => array(
'graph.facebook.com' => $fbUser->token,
)
));
$identityId = $idResp["IdentityId"];
I can see the identity id in the identity browser page of Federated Identities, but there are no any user record in the Users page of User Pools.
Is this a expected result ? If it is, how can I add user info into User Pools and get them ?
Any help is appreciated.