Facebook SDK - Unity - Login to another Account after first Login? - account

Hi i´ve a qestion so i integrated the facebook sdk for unity and there when you login once it stores your logindatat somewhere i´dont know so you don´t have to login again each time if you want to play the game how this said
"This property might be true when SetInit is called if the API detects that the user has already previously authed the app in a previous session. This means the user doesn't have to click the login button every time they play the game."
But now i want to know how i can login into another account if i logged in once ...
Thus i have to login the stored information which facebook sdk stores to login into an account.
Cause if i want to login after first time facebook don´t ask me to which account i want to login.
So there must be some "stored" playerprefs which i can overwrite so that the sdk thinks again thats must be the first login ? : /
Or isn´t that feasible ?

You have to logout manually if you have the Facebook App installed on your device. Then you can login with another account from your app. Otherwise FB.logout() should work to logout if you don't have the FB App installed and you'll be able to login via some browser again.

Related

Facebook login infinite repetition in React-native app

I created an app and implemented Facebook login using facebook sdk.
If the person who has logged in once logs in again, the question of whether to maintain the authority is repeatedly asked and the login is not possible.
If your are intended to not have user already logged-in then
why don't you try LoginManager.logOut() before calling LoginManager.logInWithPermissions or AccessToken.getCurrentAccessToken()

How can we login multiple account on same browser

I am creating an app with Node.js express to display social media feeds using their API. I am using FACEBOOK, TWITTER, INSTAGRAM. When I click on any social media icon, a popup window is appearing to login. After logging in all of them. I clicked a button to display feeds. This is working good for single account. Now I want to login multiple account for every social media. But whenever I clicked another social media icon to login .I saw there is already logged in.
For example I click Facebook icon to login . After appearing model window I fill up my username(jrajput315) and password. After logging in this account, I want to login some other Facebook account. And I click Facebook icon to login again. But I see (jrajput315) is already logged in there.
Since you are already logged in to Facebook from one account, Facebook uses a sign-in cookie to keep you logged in. Until this cookie is flushed out, you cannot login through another facebook account on the same browser in the same session.
I guess similar practice happens with few other web-apps, if I am not mistaken.

How to authorise an application to use Facebook credentials of Setting in iOS?

In my app I want to add Facebook Login. I have already done that but the problem as of now is I get a Pop Up to login via Facebook. I want if user has installed Facebook application in his device there should not come any pop up for login. As the user has already provided his credentials to the device. The basic intention is to use the credentials of setting and log in to the my app without so that Facebook installed app user doest need to give his/her credentials again.

get same permission screen every time when login with facebook app installed in the iOS device

I am using Facebook iOS SDK v3.5 for my app, I found that if I installed the facebook app and was not logged into the iOS device (Settings > facebook), then if I was logged into my app for the first time, it works fine: it will switch to the facebook app's login view and show some permissions with a "OK" and a "cancel" button. but after I was logged into my app and logged out and logged in again, the same permission screen in the facebook app will still be shown. I think the expected behavior is that when log in for the second time we should not see that permission screen since we have already granted these in the first time log in.
The same thing happens in the sample project "Scrumptious" in the FB SDK v3.5. Does someone know how to solve this problem? Thanks.
If I understand you correctly, the behavior is working as intended. Basically, the semantic here is that the user has logged out, so it is appropriate to ask them to confirm to log in again. Specifically the logout code in the sample (and in most apps) is to clear the token cache on the device, so the next time the app is asking for a new token.
You are right that once a user has granted permissions (and until they revoke them), the Facebook servers do know this. As a result there is a slightly nuanced flow in the login screen (you can see this by granting publish to scrumptious, and then the next time you request post it will be something akin to "you've already granted this permission").
So, you could technically not clear the token cache but then why bother with a log out option.
Hope that helps.

iOS Facebook integration,FBConditionalLog

I know this question has been asked many times, I've already done my research both on stackoverflow and on google, but nothing came up that resolves my problem.
I'm trying to integrate Facebook login in my application. I'm using the latest Facebook SDK which can be downloaded here. I'm not only trying to integrate Facebook login, but also other Social network login as well. So far, I'm able to accomplish them.
To integrate Facebook login, I've followed this tutorial. I've done exactly the same. My problem is that when user clicked on Facebook login button. Facebook login page appears in the browser, then asks for permissions. So far, it's working. After completing user credentials then click login button on the browser, I got this log FBConditionalLog: handleOpenURL should not be called once a session has closed, I got no error. Also, in my Facebook account, I've seen that I've permitted the application in the app settings. Normally, I would have got user session found log, if user was able to login successfully.
Do you have any idea, what I'm doing wrong?