javascript - Cordova and Facebook login - Using Passport on Server Side? -


i'm building app cordova , i'd use node/express backend.

my question concerns authentication. passport , i'd continue use passport, i'm bit confused how register users using facebook's javascript sdk.

i success object javascript sdk:

{     status: "connected",     authresponse: {         session_key: true,         accesstoken: "<long string>",         expiresin: 5183979,         sig: "...",         secret: "...",         userid: "634565435"     } } 

i'm thinking of posting access token api endpoint, , having server retrieve user information using graph api.

is appropriate way approach this? there more dignified/foolproof ways of implementing facebook login cordova , node/express?


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -