phpfacebookfacebook-loginopencart2.x

Facebook Login is not working even if I upgrade to https


Facebook recently enforced the use of HTTPS in their app settings. I installed SSL certificate and my website (opencart) works fine over https. I created a new facebook app, added https domain, added other requirements to make it public and then I put the App ID and secret into my application and I still get that taunting error notification from Facebook enter image description here

And In my app setting I am using https too

enter image description here

Still I am unable to login and keep getting that error Anyone else came across such a case?


Solution

  • The problem doesn't lie in the Facebook settings - you need to make sure you use HTTP in the redirect URI in your code.

    Your Facebook login button has the following URL:

    https://www.facebook.com/v2.8/dialog/oauth?client_id=234600760430222&state=...&response_type=code&sdk=php-sdk-5.4.2&redirect_uri=http%3A%2F%2Fkaneeza.com%2Findex.php%3Froute%3Daccount%2Fawesome_social_login_ozxmod%2Ffblogin&scope=email
    

    Note the redirect_uri=http... bit.