I am a bit confused with facebook login procedure.
At the moment my application works like this:
- Login activity where user logs in and starts fragment activity
- Fragment activity with viewpager and 3 fragments
This works, but there is a problem, everytime user starts an app Login activity is called. How can i bypass this if session is active or even better how can i implement this in my Fragment activity.
For example if there is no user logged in, login window/fragment shows and then is redirected back to viewpager and default 3 fragments.
I was following this tutorial
https://developers.facebook.com/docs/android/login-with-facebook
Problem with this tutorial is that it opens Main Fragment and thats it, there is no "redirecting" and i am not sure how to come back to my viewpager.