I'm trying to authenticate to a node.js api using passport-facebook-token from an IOS app.
I have username and password auth set-up and working fine through passport and the passport-facebook-token set-up as per the example.
passport.use(new FacebookTokenStrategy({
clientID: config.facebook.clientID,
clientSecret: config.facebook.clientSecret
},
function(accessToken, refreshToken, profile, done) {
User.findOrCreate({ facebookId: profile.id }, function (err, user) {
return done(err, user);
});
I just cant figure out the HTTP request syntax needed to send the access token across to the API.
Any help would be massively appreciated.
Thanks.