Pretend someone visits my site and wants to register for my game then login , all via fb. What is the recommended flow? I thought I saw a flowchart somewhere but can no longer find it.
Pretend someone visits my site and wants to register for my game then login , all via fb. What is the recommended flow? I thought I saw a flowchart somewhere but can no longer find it.
Wow - great details, thanks!
I would actually recommend using the Facebook login as the starting point though, getting the player account set up with CreateAccount set to true, and add the email/username/password later with AddUsernamePassword. Using RegisterPlayFabUser first requires that the user enter info to set up the account, which means there's friction in the path to getting the player to actually try the gameplay. That usually results in a significant amount of abandonment, so setting up the account "invisibly" and then asking them to update the other info you need later is usually more successful.
We also have a blog post on many of our recommendations on player account setup and login here: https://playfab.com/blog/first-impressions-count-best-practices-friction-free-player-authentication/. Hopefully that'll be helpful as well.
I'm not sure if this is the best way, as there's tons of routes to do this it seems:
With AJAX and JQ, the page is never refreshed and it's a completely dynamic process. My page is still under construction, but can sample @ https://www.Throne-of-Lies.com
I have a register and login. Here is what I did, since the "quickstart" guides for this is EXTREMELY hard to find, even on Google (@Playfab staff -- perhaps you guys could write up a KB one day? Here is an ugly template):
REG
FB.api('/me?fields=id,name,email,permissions', function(response) { ...
TROUBLESHOOTING REG: Once you are almost done, you'll be in your "Players" account ready to change the email you just registered with over and over until you see a successful account linked. It's also nice to NOT change the email of your fb account reg to test errors on "email in use" or "username in use" handling.
LOGIN
No one has followed this question yet.