I am using AWS Mobile Hub for iOS and wanted help getting user details by using AWS Cognito identity pools.
For example after logging-in via Google and Facebook, along with the secret keys which Google and FB give, I also need the user-profile details like his Email-ID, Profile_picture from them.
It will be good if someone can post a SWIFT code for the same.
The following code snippets use the Facebook and Google SDK for iOS respectively.
For Facebook:
For Google: