How to keep Facebook session between app session?

amosss

New member
Jan 5, 2015
1
0
0
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
 

Forum statistics

Threads
955,912
Messages
6,966,079
Members
3,163,423
Latest member
yasheshm09