Hi
Hope you can help. I've followed your instructions on on how to build an app with the Facebook api, which I am using to log users in to my app.
On my app, if a user logs in via Facebook for the first time, I then automatically use the new user's details to create a user in the User collection (using their email address returned via Facebook as their username, and generating a random password), and I receive back in the response a user _id and a sessionToken. I store these locally and can use them to do things in my app, such as allow users to update their user profile.
So far all is good.
However, if a user logs in later via Facebook I don't know how to get a new sessionToken for them. This means I also can't query the Users collection to get their user _id. Unfortunately, this means users can't do many of the things in my app like update their user profile.
How can I get a sessionToken for returning users who are logging in via Facebook?
Many thanks in advance,
Richard