Cognito - Facebook

0

Good Morning!

We've been trying desperately all evening to use the player account system with a Facebook login. I wanted to seek clarification on a few things.

Our goal is to have a user login primarily via Facebook, and have our user pool update with any necessary information (I.E. everything that's available through Facebook's public_profile attribute). We would like to temporarily host this information, process it via AWS and download a processed package to the user's client. Preferably, a single time each in real-time. We've set up federated Facebook support for the user pool on Cognito, but we're at a loss of how to accomplish the user signing into Facebook.

Do we need to code/produce another application of some sort to achieve the Facebook login?

  • Maybe a Lambda function pushed through from an html page?
  • Node.js hosted on AWS that manages the request and receives the token?
  • Maybe a Native React application? Please let me know and thank you for your help!

Have a great day!

asked 6 years ago215 views
5 Answers
0
Accepted Answer

Hey @REDACTEDUSER

I'm sorry for this frustrating experience -- let me get you some assistance on this topic :) Stay tuned!

answered 6 years ago
0

Sure thing! Just let us know when you have found someone to answer it. Thank you for your time and have a great day!

answered 6 years ago
0

Thanks for all of your help everyone! We've made LEAPS forward.

answered 6 years ago
0

Hello @REDACTEDUSER

So I believe there are a few different parts to what you're trying to build and it sounds like you're on the right track. Step 1 will be creating some sort of UI layer with a web view in order to perform the Facebook login steps as described at Manually Build a Login Flow - this would likely be a 3rd party library of your choosing. Once you have the token retrieved from the facebook login process in Lumberyard you can perform the Login Ebus call in Configuring External Identity Providers at Cloud Canvas Player Identity This will allow cloud canvas to automatically maintain and refresh cognito credentials. It sounds like what you additionally want is to use those player credentials to make custom API calls to Facebook to retrieve the data you're after - this would be a custom lambda you'd want to write and likely add to your Player Accounts gem's resource-template so you could give it permission to add to/modify your PlayerAccounts table and return the desired data to the client.

Hope that helps!

answered 6 years ago
0

Hello @REDACTEDUSER

Are you building your application on a mobile platform? If so, I would recommend using the Facebook SDK to log in the users of your application. Once logged in you would need to retrieve the user's identity from the session object and pass it into the Cognito SDK so that it can provide you with an Amazon Cognito Identity to identify the user.

Here is some reading material which hopefully will help you in building the system out.

Thanks!

answered 6 years ago

This post is closed: Adding new answers, comments, and votes is disabled.