How to keep Facebook session between app session?

amosss

New member
Jan 5, 2015
1
0
0
Visit site
I know how to login to Facebook and use its info but I don't understand how to keep this session alive if the user presses the home button and opens my app again. There are a lot of functions related to session like getActiveSession, openSessionFromCache etc. but that's only making me more confused.

I have one activity that holds the different fragments when they're needed so I guess I should do something in MainActivity's onResume but I don't understand how can I check for Facebook session existence and if it is, use it or "wake it up" and continue from where the user has left it. I searched the net but I keep getting to posts about logging in to Facebook but not how to maintain it afterwards.

Please advice
Thanks
 

Trending Posts

Forum statistics

Threads
943,184
Messages
6,917,688
Members
3,158,867
Latest member
Non