I'm trying to figure out to have multiple facebook accounts tied into my app. So that when different users login, they can access their individual facebook accounts.
I would like to have my app have it's own login. After a user logs in they have the option to connect their facebook account. But because there are multiple users I need to figure out how to associate multiple facebook accounts.
Here's what I got so far:
- Facebook Dialog Auth because SSO uses the Facebook App, thus only allowing one fbook account at a time.
- Server Side Auth because I would like the access tokens to last decently long (60 days) without each user having to relog into facebook when they use my app.
Here are my hangups:
How do I reapply a token once the user has logged into my app (after already associating their facebook account). Is this the correct method? Can anyone provide a tutorial or code for reapplying a token?
private Facebook mFb; mFb.setAccessToken(TOKEN);
Can anyone provide code on how to setup Server Side Auth?