Facebook login on page app using php sdk

134 views Asked by At

I have prepared a Facebook login for an application installed in page, the problem is when I click on the "login" button on the page it redirect to a blank white page, without connecting, but when i open the app with the direct link "https://example.com/my-app", the login is working good without any problems and the user keep being connected after approving the app;

I am working with :

  • codeigniter 3.0
  • Facebook PHP SDK v4
  • PHP 5.4
  • Facebook Scope : public_profile, email
1

There are 1 answers

0
Yassine Guedidi On

Add target="_top" to your login link in the iframe to make it redirect to the login page in the top window instance.