How to stop automatic facebook login in my website? - facebook

i have a site which has a facebook login button. if i am logged in facebook on same browser, and clicks on website login button, it redirects me to the profile page without asking option to login via facebook or via form. i will add google plus button also in future.
so please tell me how to stop this automatic login in facebook.

It's all about Browser Cookies and Cache.. The session already kept in your browser cache. so that's why .. It automatically redirects you to facebook. You need to clear your browser cache. to solve this issue...

Related

Facebook Recent Logins breaks OAuth flow

I'm having troubles working with what appears to be an error with Facebook's OAuth server-side flow. When logging into Facebook using "Recent Logins", Facebook does not redirect back to my calling application. Instead it goes directly to the Facebook home page.
If I login to Facebook using the email/password fields at the top right of the screen, then the redirection becomes successful.
Is there some way to force facebook to send users to it's main login page and not this main page that displays the recent logins when they are not already logged into Facebook?
This also occurs using Facebook's very own OAuth for developers. So I know it can't be just me.
Login to Facebook.com
Logout
Visit facebook's apps page
Click your profile pic and enter your password (rather than using the blue banner to login).
Facebook redirects you to their home page rather than this page
What would be great is a parameter to this page that would allow me to force a particular facebook login dialog as a workaround.

Iframe on my website blocking Facebook login

I am integrating a facebook login on a website, when I click on the login button, everything works perfect.
The problem is that I have different iframe on the website and when I open a iframe, and then I click on the Facebook button, no longer performs the login and must click 2 times for the login is successful. The first time, sent me and I returned to facebook
mydomain.com/?code=AQBBUikowvG3plEzLmvOXUmentATkPf8n6TQzdVxNWOAZ5jD-&state=21c4e7aa#=
then I have to click again and the login is done successfully.
I'm using this library to connect with facebook github.com/appleboy/codeigniter-facebook-php-sdk-v4
Why I can not perform my login after opening an iframe?
Thanks #CBroe, you're right, I had a call to the API of facebook in the parent page and the iframe, the iframe to remove everything worked properly.

Facebook Logout Button for My Website (Not Facebook Connect Logout)

I was wondering if it is possible to create a "logout" button for my site that will log a user out of facebook and then redirect them to a specific URL ? Let me elaborate, I work in a retail store and I have a mounted iPad so customers can "like" our facebook page (by using a traditional facebook like button). Currently, when customer's select "like" it opens a new window where facebook asks for a username and password, and then immediately after the customer hits "Submit" it re-directs them back to a specific URL where I say "thanks for liking us"...the only problem is that it keeps them logged into facebook.
I'm hoping to put a logout button on my "thank you for liking us" URL so they can click that to logout (without going back to facebook) and then it re-directs back to the page with the like button for the next customer.
I have tried facebook connect but it's so many steps because users have to allow the app etc. that I'm hoping to avoid that. Maybe a way that clears the facebook cookies or anything else? I'm so out of ideas that anything will help!
Include the Facebook JS SDK and then call FB.logout() either on click of the link, or on the thank you page.
Tested, not working even with FB.logout(), because once you logged in facebook.com, then fb cookie will be injected automatically, there's no way to remove it unless you've logout from facebook.com.:/

Facebook logout problem

I am using Facebook Login button in my website.
Visitors can log in via facebook successfully.
FB login is working integrated with my own membership.
I mean I keep logs of FB logins.
The problem is here;
User may log out from my site by clicking Logout button (my own logout button)
When they press the logout button, i redirect them to logout.php and run the following JS;
"FB.logout()"
The JS code causes that user logout from their facebook account not my site.
If they login facebook on an another tab, and refresh my page they will log in again.
How can i end a session that user open via Facebook on my site?
You also have to clear facebook sessions from your machine with below code:
using Facebook;
Thread.Sleep(1000); // delay is required to get it work
Facebook.Session.ConnectSession cn = new Facebook.Session.ConnectSession(ConfigurationManager.AppSettings["APIKey"].ToString(), ConfigurationManager.AppSettings["Secret"].ToString());
cn.Logout();

Login with Facebook button issue in magento site

I have installed the fbconnect module of magento on my website and the 'Login with Facebook' button is there on this page:
https://www.scopial.com/customer/account/login
Whenever a user clicks this button it can be logged into the site using facebook account. But when the user is already logged into the site with facebook and when the user logged out of his facebook account and then comes back to the magento site and logged out from the magento site and then coming back to login page again, the facebook button disappears from the site.
I think this may be the issue of browser cookies as when i am clearing my browser's cookies, the facebook button is appearing there.
That account appears to be suspended in your example. However, you can find a lot of helpful information now on Facebook's developers website. See specifically https://developers.facebook.com/docs/authentication/