简体   繁体   English

Liferay 7.0 Facebook集成

[英]Liferay 7.0 Facebook Integration

I'm trying to integrate Facebook with Liferay. 我正在尝试将Facebook与Liferay集成。 I have configured all the necessary settings required (Reference : https://community.liferay.com/blogs/-/blogs/sso-via-facebook ). 我已经配置了所有必需的必要设置(参考: https : //community.liferay.com/blogs/-/blogs/sso-via-facebook )。 When I click on facebook link from Login Portlet a popup window appears with Facebook app request and credentials to login, as I enter email id and password, it redirects to Liferay home page but does not get logged in. The following url appears after redirecting : http://localhost:8080/web/guest/home# = 当我单击Login Portlet中的facebook链接时,会出现一个弹出窗口,其中包含Facebook应用程序请求和凭据以登录,当我输入电子邮件ID和密码时,它将重定向到Liferay主页,但没有登录。重定向后将出现以下URL: http:// localhost:8080 / web / guest / home# =

And When I make the facebook app public and try to login then I get below error 当我将facebook应用程序公开并尝试登录时,出现以下错误

{
"error": {
  "message": "Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.",
  "type": "OAuthException",
  "code": 191,
  "fbtrace_id": "GQI8Z8xFfoB"
}
}

Any idea why user is not getting logged in? 知道为什么用户无法登录吗? Am I missing any step? 我错过任何一步了吗?

Liferay version : 7.0 GA3 Liferay版本:7.0 GA3

The answer you are looking for is on the message itself: 您正在寻找的答案在消息本身上:

"Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings." “无法加载URL:此URL的域未包含在应用程序的域中。要能够加载此URL,请将应用程序的所有域和子域添加到应用程序设置中的“应用程序域”字段中。”

Your issue is not on Liferay's side but on your Facebook configuration. 您的问题不在Liferay一边,而在您的Facebook配置上。 All domains you intent to use need to be white-listed on your facebook app page. 您打算使用的所有域都必须在您的Facebook应用页面上列入白名单。

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

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