node.js - Facebook iOS SDK and passport-facebook authentication -


i'm trying implement server facebook authentication using passport-facebook on ios facebook sdk app, , i'm unclear how setup passport authentication on backend.

basically ios client authenticates facebook , gets sessiontoken , want pass passport-facebook /auth/facebook/callback verify session token fb, , lookup user our database through node.js.

is correct way use passport-facebook, or need call /auth/facebook (and parameters need pass it).

this issue mentions building app using facebook ios sdk , authenticating on server, doesn't mention how that.

https://github.com/jaredhanson/passport-facebook/issues/7

i write own custom passport strategy passes fb session token , can verify fb graph api on server fb user id , authenticate it's valid session, mentioned here: design facebook authentication in ios app accesses secured web service

check out passport-facebook-token, designed authenticate based on issued token (ie, 1 issued ios app).

passport-facebook designed web-based, redirect flow, not typically done mobile application.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -