Search Unity

Facebook data to database

Discussion in 'Connected Games' started by wdpower, Nov 14, 2019.

  1. wdpower

    wdpower

    Joined:
    Nov 11, 2014
    Posts:
    2
    Hi,

    Currently i'm working on a mobile game.
    The GUI and gameplay is done and works fine.
    Now I want to use a database that hold things like username, coins, purchased items etc.
    I think about to use MySQL for this.


    My game supports facebook login. I tought about to save the data from facebook (userId, name, email and profile picture) to my database. My game must support google login in the feature wich sould work on the same way. Is this the correct way to do social media intergration or is there a better way?

    Sorry for my English I hope it's understandable.

    Greetz,
    John
     
  2. Aquastar

    Aquastar

    Joined:
    Jul 17, 2013
    Posts:
    29
    Using MySQL is ok. You don't need to save much information from Facebook. Only userId and email are enough. This is same to Google.

    Did you consider Amazon Cognito? It is easy to integrate and ready for lots of 3rd party login.
     
  3. wdpower

    wdpower

    Joined:
    Nov 11, 2014
    Posts:
    2
    Thank you for your reaction!