I struggle to find a full example of PhoneGap app using Facebook login that integrates nicely with passport.js.
If seems like the PhoneGap FB plugin is returning AccessToken while passport FB plugin expect to work with code and then replace it with AccessToken.
Any such full example?
There is no way as far as I know. Passport.js is for web applications and the strategy does the redirect dance of oauth, which gives you an access token at the end.
On the other hand you seen to be using the facebook native login flow that gives you an different type of access token.
It will be easier if you add/explain why you need passport in the first place.
It seems this is the passport strategy you need: passport-facebook-token
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With