I am following the login with Facebook example for my app from here.
I have a question regarding one of the login test cases as mentioned on facebook. Here is the scenario:
First time user comes, sees the login to facebook button
Successfully logs in, sees and approves the facebook(fb) app permission screen, and I get the authdata, and some other info
User closes the app
User directly goes on Facebook and revokes the access to the fb app, approved in Step 2.
User opens the mobile app, and still able to use it, without getting the facebook login button..?
Ideally I would like to see the login button again.
How do we handle such a scenario with Firebase and Facebook together? Do I need to check something on every app restart and what all things I need to clear before new login starts?
Related
I am using Instagram authentication in my android app. I have registered app on Instagram Developer Console and retrieved Client Id and Client Secret and also added Redirect Url. (Right now it's in Sandbox mode only).
Also why it's asking for Security code every time?
I am getting redirect back to app issue while user authentication. below are two case.
First Time
When i click on "Login with Instagram" button, it's loading login screen and after adding Sandbox user credentials, when i press on Login, It's redirecting me on the screen to send security code on Email or Mobile. By choosing any of them i am getting Code and after entering valid code, it's redirecting me on Instagram Website Dashboard instead of send back to the mobile app. In this case, it should ask for authorize and redirect me back to my app.
Second Time
Now if i close app and open again and if i press on "Login with Instagram" button from my Login screen, it's loading login screen and after entering valid credentials it's asking for authorize user for the app. This time it's working fine.
So the issue is if i fresh install app and try to login with Instagram then it's asking for Security code and redirecting me to Instagram website. Second time it's working fine.
I also did many google research as well as code debug for both case but all the time i am getting same urls.
I am developing an app where user can be different at different times. My app allows login with facebook. Integration and all works perfectly but i got stuck at a point.
Following is the scenario:
user_a logged into my sample app with facebooksdk-> same user logged in Facebook app (In android mobile), now i show the connected status to the user in my app.
Now, I will change the user in facebook app and i will re-open my sample app. Here it is still showing the old user. In this place i have sync between facebook app user and my sample app user and if different i have to force Logout user from my app and ask him to login again. Please let me know what i am missing. Thanks
I have tried ProfileTracker as well as AccessTokenTracker but these both getting executed only if user logged out from my app .
I have an android app that uses facebook SDK.
I have a problem with this scenario:
I use the my app for the first time then I log in my facebook account in my app. The credentials are then save in the app so that users will not be ask to log in again. Now, in the facebook app, I log out my account then log in again with a different user. When I go back to my app and retrieve the some user info, it still has the old user in it.
I tried to check it using Profile.getcurrentProfile() but it still contains info on the old user.
Is there any way to detect who's currently using the facebook app?
I am using febric for android twitter integration, and I could successfully login from Twitter native App to my app. But it always asks user to allow sharing account details.
Below are the screen
After i allow another screen comes
Why it asks for allow each time user login with same account, since it should be asked only for (the first) one time for each user? How can I solve it?
I have an app that uses facebook connect. When it has to login to facebook it opens up the android app on the phone. But after that the app works independently of facebook. What I want to do is that if the user logs out of facebook on the facebook app my app should also sign out autmomatically. How can this be done?
There is no way to get notified if a user is logged out of the facebook app. The only thing you can do is to clear the facebook OAuth token everytime your application is closed.
This way the user would have to go through the facebook login process every time she opens the app. If the facebook app is logged in this will be very fast. If the user is logged out she will have to log in in facebook again to use your app.