简体   繁体   English

Facebook使用php SDK登录页面应用程序

[英]Facebook login on page app using php sdk

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; 我已经为安装在页面中的应用程序准备了Facebook登录名,问题是当我单击页面上的“登录”按钮时,它重定向到空白的空白页面,没有连接,但是当我使用直接链接打开应用程序时,“ https://example.com/my-app ”,登录正常,没有任何问题,并且用户在批准该应用后保持联系;

I am working with : 我正在与:

  • codeigniter 3.0 Codeigniter 3.0
  • Facebook PHP SDK v4 Facebook PHP SDK v4
  • PHP 5.4 PHP 5.4
  • Facebook Scope : public_profile, email Facebook范围:public_profile,电子邮件

target="_top"添加到iframe中的登录链接,以使其重定向到顶部窗口实例中的登录页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM