teamartemis / foreverboards

Web application for creating online memorials
http://foreverboards.us
3 stars 4 forks source link

Facebook authentication using Parse #3

Open lsavage92 opened 8 years ago

dvc94ch commented 8 years ago

So I took a look at what's involved here. Basically the signup/signin functionality we created would be replaced with a login with facebook button. This could be implemented using hello.js. http://adodson.com/hello.js/#quick-start After that the user factory only needs a signin. The signin only needs to post the following fields, that should be retrievable using hello.js:

"authData": {
          "facebook": {
            "id": "123456789",
            "access_token": "SaMpLeAAibS7Q55FSzcERWIEmzn6rosftAr7pmDME10008bWgyZAmv7mziwfacNOhWkgxDaBf8a2a2FCc9Hbk9wAsqLYZBLR995wxBvSGNoTrEaL",
            "expiration_date": "2012-02-28T23:49:36.353Z"
          }
        }

If the user already exists we'll get a 200 response and if not a 201.