Message Boards
URL blocked
pradip choudhari, modified 3 Years ago.
URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Team ,
I am integrating Facebook app with liferay . for that I created app in facebook and get app Id and secret key and configured in Liferay FB configuration setting .
Application ID : ************** , Application Secret : *************,
Graph URL : https://graph.facebook.com
OAuth Authentication URL:
https://www.facebook.com/v7.0/dialog/oauth
OAuth Token URL : https://graph.facebook.com/oauth/access_token
Redirect URL : https://localhost:8443/c/login/facebook_connect_oauth
and inside facebook app - Valid OAuth Redirect URIs I used same URL for redirection is : https://localhost:8443/c/login/facebook_connect_oauth
But whenever I am clicking facebook link , I am getting URL blocked error only , so that user not adding in User_ table
after click facbook generating URL also I am adding here :
https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fwelcome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DUaPIvrGL&scope=email
I am integrating Facebook app with liferay . for that I created app in facebook and get app Id and secret key and configured in Liferay FB configuration setting .
Application ID : ************** , Application Secret : *************,
Graph URL : https://graph.facebook.com
OAuth Authentication URL:
https://www.facebook.com/v7.0/dialog/oauth
OAuth Token URL : https://graph.facebook.com/oauth/access_token
Redirect URL : https://localhost:8443/c/login/facebook_connect_oauth
and inside facebook app - Valid OAuth Redirect URIs I used same URL for redirection is : https://localhost:8443/c/login/facebook_connect_oauth
But whenever I am clicking facebook link , I am getting URL blocked error only , so that user not adding in User_ table
after click facbook generating URL also I am adding here :
https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fwelcome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DUaPIvrGL&scope=email
Attachments:
Mohammed Yasin, modified 3 Years ago.
RE: URL blocked
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohmmad sir ,
Thanks for always giving valuable suggestions.
I gone through that link previously also , and checked each schenerio But not worked in my case .
I tried all below callback redirect URL (mapped in liferay setting facebook configuration and facebook developer settings in facebook app ):
https://localhost:8443/c/login/facebook_connect_oauth/
https://localhost:8443/c/portal/facebook_social_login
https://localhost:8443/signin-facebook
https://localhost:8443/auth/facebook/callback
https://localhost:8443/facebook/callback
but not worked any of the URL .
You have any other solution sir ? I am thinking issue is with redirection URL only
Thanks & Regards ,
Pradip
Thanks for always giving valuable suggestions.
I gone through that link previously also , and checked each schenerio But not worked in my case .
I tried all below callback redirect URL (mapped in liferay setting facebook configuration and facebook developer settings in facebook app ):
https://localhost:8443/c/login/facebook_connect_oauth/
https://localhost:8443/c/portal/facebook_social_login
https://localhost:8443/signin-facebook
https://localhost:8443/auth/facebook/callback
https://localhost:8443/facebook/callback
but not worked any of the URL .
You have any other solution sir ? I am thinking issue is with redirection URL only
Thanks & Regards ,
Pradip
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohmmad sir ,
You have any other alternates ? I will try
Thanks & Regards,
Pradip
You have any other alternates ? I will try
Thanks & Regards,
Pradip
Mohammed Yasin, modified 3 Years ago.
RE: URL blocked
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Your call back url is http://localiticourses.buildyourcareerpath.com right and i assume that u have configured this in facebook app setting and not localhost:8443 ?
also have u added below properties in your liferay portal , i guess it should not impact facebook to redirect back but you can give it try
also have u added below properties in your liferay portal , i guess it should not impact facebook to redirect back but you can give it try
[code]# Set this property to "ip" or "domain" for the redirect security method. If
# set to "domain", the portal will only redirect users to domains listed in
# the property "redirect.url.domain.allowed". If set to "ip", the portal
# will only redirect to domains whose IP address resolve to an IP address
# listed in the property "redirect.url.ip.allowed".
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_SECURITY_PERIOD_MODE
#
#redirect.url.security.mode=domain
redirect.url.security.mode=ip
#
# Input a list of comma delimited domains which the portal is allowed to
# redirect to. Input a blank list to allow any domain. Specifying a domain
# with a leading "*." allows redirects to subdomains.
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_DOMAINS_PERIOD_ALLOWED
#
redirect.url.domains.allowed=
#
# Input a list of comma delimited IPs which the portal is allowed to
# redirect to. Input a blank list to allow any IP. SERVER_IP will be
# replaced with the IP of the host server.
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_IPS_PERIOD_ALLOWED
#
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohammed sir ,
My actual url is http://localiticourses.buildyourcareerpath.com this one .. just above I mentioned as localhost .
Before integrating fb in my local environment , I converted http request to https req. , Because I seen In FB document - they not allowing http req. in development mode also from 2018 .
But I not added any properties in liferay portal , may I add above properties in liferay portal file
Thanks & regards ,
Pradip
My actual url is http://localiticourses.buildyourcareerpath.com this one .. just above I mentioned as localhost .
Before integrating fb in my local environment , I converted http request to https req. , Because I seen In FB document - they not allowing http req. in development mode also from 2018 .
But I not added any properties in liferay portal , may I add above properties in liferay portal file
Thanks & regards ,
Pradip
Mohammed Yasin, modified 3 Years ago.
RE: URL blocked
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Yes you can add those properties and try
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohammed sir ,
I tried below 3 property in my portal file
redirect.url.security.mode=ip
redirect.url.domains.allowed=
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
but it not worked , after clicking facebook link getting URL blocked same like previous
Thanks & Regards ,
Pradip
I tried below 3 property in my portal file
redirect.url.security.mode=ip
redirect.url.domains.allowed=
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
but it not worked , after clicking facebook link getting URL blocked same like previous
Thanks & Regards ,
Pradip
Mohammed Yasin, modified 3 Years ago.
RE: URL blocked
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
In your case, as your using domain you need to set as belowredirect.url.security.mode=domain
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent PostsMohammed Yasin:
In your case, as your using domain you need to set as belowredirect.url.security.mode=domain
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
Hi Mohammed sir ,
sorry for mistake .. Can I try like below property redirect.url.security.mode=domain
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
Thanks & Regards,
Pradip
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohammed Sir ,
I updated properties file , But still same issue facing .
and after clicking facebook link also getting url is same as previous :
https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fhome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DTGOkpx5i&scope=email
Inside fb Valid OAuth Redirect URIs :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
and In liferay fb setting Redirect URL :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
I am configured same urls , is anything I missed there .
Thanks & Regards ,
Pradip
I updated properties file , But still same issue facing .
and after clicking facebook link also getting url is same as previous :
https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fhome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DTGOkpx5i&scope=email
Inside fb Valid OAuth Redirect URIs :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
and In liferay fb setting Redirect URL :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
I am configured same urls , is anything I missed there .
Thanks & Regards ,
Pradip
Stian Sigvartsen, modified 3 Years ago.
RE: URL blocked
New Member Posts: 6 Join Date: 5/1/15 Recent Posts
Hi Pradip. Have you tried validating your Redirect URL using the tool that Facebook provides? You should find the tool under
[Your Facebook application] > Facebook Login > Settings
Then at the bottom of the page you'll find "Redirect URI Validator"
To be clear, you should validate the following URL: https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
[Your Facebook application] > Facebook Login > Settings
Then at the bottom of the page you'll find "Redirect URI Validator"
To be clear, you should validate the following URL: https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
<p>Hi Stian sir<strong> , </strong><br />
<br />
Thanks for the suggestion.<br />
<br />
I validated the redirect url and getting success message for the url .<br />
<br />
Thanks & Regards , <br />
Pradip</p>
<br />
Thanks for the suggestion.<br />
<br />
I validated the redirect url and getting success message for the url .<br />
<br />
Thanks & Regards , <br />
Pradip</p>
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Developers ,
Is anyone faced this issue , still I am not able to get correct redirection URL
I tried all below urls as up now :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
https://localiticourses.buildyourcareerpath.com:8443/signin-facebook
https://localiticourses.buildyourcareerpath.com:8443/auth/facebook/callback
https://localiticourses.buildyourcareerpath.com:8443/facebook/callback
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_social_login
https://localiticourses.buildyourcareerpath.com:8443/accounts/facebook/login/callback/
and tried below properties in my portal file -
redirect.url.security.mode=domain
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
If anyone implemented facebook in liferay , give me some guidance..
Thanks & Regards ,
Pradip
Is anyone faced this issue , still I am not able to get correct redirection URL
I tried all below urls as up now :
https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
https://localiticourses.buildyourcareerpath.com:8443/signin-facebook
https://localiticourses.buildyourcareerpath.com:8443/auth/facebook/callback
https://localiticourses.buildyourcareerpath.com:8443/facebook/callback
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_social_login
https://localiticourses.buildyourcareerpath.com:8443/accounts/facebook/login/callback/
and tried below properties in my portal file -
redirect.url.security.mode=domain
redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com
If anyone implemented facebook in liferay , give me some guidance..
Thanks & Regards ,
Pradip
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Developers ,
when we click facebook link in liferay portal , internally it will create user that time it will use FacebookConnectStrutsAction.java class internally . so based on this reference I mentioned in callback url is : https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
// user insertion code }
But not get success still . facing URL blocked error again
Can anyone give suggestion , where i am doing mistake ?
Thanks & Regards ,
Pradip
when we click facebook link in liferay portal , internally it will create user that time it will use FacebookConnectStrutsAction.java class internally . so based on this reference I mentioned in callback url is : https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
@Component( | |
immediate = true, | |
property = { | |
"/common/referer_jsp.jsp=/common/referer_jsp.jsp", | |
"path=/portal/facebook_connect_oauth" | |
}, | |
service = StrutsAction.class | |
) | |
public class FacebookConnectStrutsAction implements StrutsAction { |
// user insertion code }
But not get success still . facing URL blocked error again
Can anyone give suggestion , where i am doing mistake ?
Thanks & Regards ,
Pradip
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hey all ,
I updated some configuration to avoid above URL blocked url error , and now getting
and this error also pointing to redirection url process of facebook , so can anyone know where I am doing mistake ?
which redirection url , i can try while configuring facebook in liferay :
Now , I am using below redirect URL
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
I updated OAuth Authentication URL :
https://graph.facebook.com/oauth/authorize ( getting can't load url error message )
previously i was used OAuth Authentication URL :
https://www.facebook.com/v7.0/dialog/oauth (getting URL blocked error message )
Thanks & Regards ,
Pradip
I updated some configuration to avoid above URL blocked url error , and now getting
"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."
I tried some answers of stackoverflow and other documnets , but not worked for this new error .and this error also pointing to redirection url process of facebook , so can anyone know where I am doing mistake ?
which redirection url , i can try while configuring facebook in liferay :
Now , I am using below redirect URL
https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth
I updated OAuth Authentication URL :
https://graph.facebook.com/oauth/authorize ( getting can't load url error message )
previously i was used OAuth Authentication URL :
https://www.facebook.com/v7.0/dialog/oauth (getting URL blocked error message )
Thanks & Regards ,
Pradip
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hey all ,
I am trying integration from last 5 days , but since I not get correct result , If anyone know please give some suggestions , which configuration I am missing ?
Thanks & Regards ,
Pradip
I am trying integration from last 5 days , but since I not get correct result , If anyone know please give some suggestions , which configuration I am missing ?
Thanks & Regards ,
Pradip
Mohammed Yasin, modified 3 Years ago.
RE: URL blocked
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,
I see that facebook is not redirecting back or not whitelisting the domain u have configured , so i don't think this has anything to do with Liferay Portal , May be you can check or post here https://developers.facebook.com/community/
I see that facebook is not redirecting back or not whitelisting the domain u have configured , so i don't think this has anything to do with Liferay Portal , May be you can check or post here https://developers.facebook.com/community/
pradip choudhari, modified 3 Years ago.
RE: URL blocked
Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Mohammed sir ,
Thanks for the suggestion .
I shared issue on facebook forum .
Thanks & Regards ,
Pradip
Thanks for the suggestion .
I shared issue on facebook forum .
Thanks & Regards ,
Pradip