I am trying to integrate Gigya(www.gigya.com) javascript api for social network login . I am successfully login with facebook. Also when I click on logout button it seems that i get logout from facebook. But when I again click on facebook login button then it not asking for login id and password, directly get login from my account.
The code is use is as follows:
gigya.services.socialize.logout(conf, {});
I have searched on gigya's forum and i found that it only logout from gigya's platform but not from the facebook.
Can any one know, how to get out from this problem? Please help..
they have maintain their cookies and session that's why you can not logout from all for example stackoverflow if you used openId then you know that. when you login using openid for e.g. google account id then open gmail you directly view your inbox and if you logout from the gmail/stackoverflow then only one of them will logout because they have maintain individual cookies and session for login time they for openid they create cookies related to that service provider like google or anyelse
for this to happen we need to set the flag forceProvidersLogout to true in the params that we sent to gigya.
Refer to the api link # http://developers.gigya.com/020_Client_API/020_Methods/socialize.logout
Related
I have an app that allows a user to login with facebook. Is there anyway to keep a device authorized. For example, every time a user needs to login with facebook they are routed to the facebook application, where they are then routed back to my app. Is there a way to check for an access token and not re-route the user. I am using expo-facebook package and react-native.
For the first time when user wants to login with facebook then Routing to the facebook API is necessary its official in the FB API docs ! But on second attempt it will not redirects you to the facebook to get data ,it implies fetches the token and you can move on !
I am new to stackoverflow, so I hope that I ask the question correctly.
For a website that I am working on, I have to implement login in using your facebook account. I have this working for the biggest part, since the user is able to login with using facebook and I'm able to retrieve the information I want.
But the problem is, whenever the user logs in with their facebook account, he automatically gets logged in into facebook itself. And whenever the user presses the log out button, facebook logs him out too. For the facebook login, I am using the javascript sdk from facebook.
This can be quit anoying for the user, since it must be possible for a random user to login my website using their facebook account, even when someone else is logged into facebook itself on the same computer.
So my question is: is it possible to login with facebook, without the user actually login into facebook, like just let facebook verify the account and send the requested information back? Using the facebook js sdk off course.
That is not possible. You cannot have 2 different Facebook sessions in one browser and you need to login to Facebook in order to login to your App.
Ok, I know about FB.getLoginStatus, but this is different
FB.getLoginStatus is working to access the APP to see if the user is login or not
And I really don't want that.
I just need to determine if my visitor is logged to facebook, if yes then what is the fb username?
Is there is something like what I need?
This can't be done, to get any information from a Facebook user they have to allow your app to do so.
I try to build a web application that, through it, I can publish post on Facebook.
Problems come out when i wanna log the user without showing login popup, but only insert text and send message, without that nuisance.
But the login popup it's useful for provide use of my app to all user Facebook.
This app it's exclusive for one person, so i don't need that all user Facebook use my app. So I thought a login in function only for API ID/KEY owner
It's possible?
I have created simple javascript widget where login happens using Facebook Single Sign On. It logins the person whenever he is logged in to facebook (after authorization for the first time). However, it also logs out the user when Facebook logout happens. I want the person to not get logged out when the person logs out of Facebook?
Suggest me what is the way around.
It is not possible to keep a facebook connection going once they are logged out. The way around would be to create your own user tracking.
Once a user is logged in through facebook - store their information in a session (cookie, table) and then rely only on that to check if this user is still logged in (you will need to implement your own logout too). This will work only if you use facebook as a login provider, if you need some interactions with facebook api that require login - they have to be logged in to facebook.