Osclass Support Forums
Osclass plugin support => Free Osclass Plugins => Facebook Login Plugin => Topic started by: surajthapa on March 20, 2018, 01:58:32 PM
-
Hi i am using veronika theme and i am trying to use facebook login plugin. Everything went right untill i click the "Login with facebook" button. It brings me to my facebook page and ask me for the permission, once i agree for the permission it brings me to my website homepage but i dont see myself login to the website. >:( >:(
the website is
www.******.com
please help :'( :'(
-
@surajthapa
I would try to uncheck:
- Use strict mode for redirect URIs
- Enforce HTTPS for Web OAuth Login
-
Unfortunately I cant disables those two option? any idea? any other solution?
-
@surajthapa
Will check it once I get some time.
-
Try to use this URL in fb app settings as valid (just tip):
https://your_url.com/?fbLogin=1&scope=public_profile,email
-
It returns Invalid URL
-
@suraj
I was updating osclasspoint. We've used madhouse facebook login however this will not be usable anymore - it use old sdk that adds to redirect URI variables, so it is impossible to set it.
I've used our Facebook Login plugin and works ok with url:
https://osclasspoint.com/?fbLogin=1&scope=public_profile,email
I think error you shown is caused by other url, /user/register as it does not goes to root directory
//EDIT:
- validator tells redirect uri is valid
- when I push login button, it tells redirect uri is not in list (lol)
- that restriction cannot be turned off so I needed to use older app to be able to have facebook login
- problem is probably that facebook sdk encode url... not sure... it does not make too much sense
-
I have tried Madhouse facebok plugin too. same result, i am not connecting.
// the link you send seems valid and working but still far from the solution.
-
@surajthapa
You will not be able to fix madhouse avatar, it use variables in redirect uri (scope) that make it impossible to set in application.
I've tried many combinations for redirect uri from Facebook Login plugin and did not succeed (using latest facebook graph sdk).
I am not sure if it is issue of app, but when I put:
https://osclasspoint.com/?fbLogin=1&scope=public_profile,email
into allowed domains and then at bottom test this URL if it is valid, I get confirmation URL is valid, but there might be problem that:
- url in redirect uri is encoded (you cannot change)
- url in facebook app convert sign "," into url encoded
You may try to update
oc-content/plugins/facebook_login/functions.php
Replace:
$permissions = ["public_profile", "email"];
with just:
$permissions = ["email"];
There will be no "," in url, then set in your fb app into allowed domains:
https://your_url.com/?fbLogin=1&scope=email
Maybe it will work, but not sure what kind of information provides fb api back to server.
-
@surajthapa
I was able to fix the issue. Please update to v1.1.0 and follow instructions in plugin configuration ;)
Pluign now works with Use Strict Mode for Redirect URIs enabled.
-
Thanks,
Didnt work at all.
But although i figured it out to fix the problem.
// i simply delete all the Facebook app and restore the one which worked previously;
As you can see the old APP has no automatic "enforce HTTPS" turns on. it still warn me to turn in on. but i will keep it disable.
also i didnt need to insert the link you have provided.
-
@surajthapa
You should enable it as soon they will check this for you or disable your app at all.
-
@surajthapa
I was able to fix the issue. Please update to v1.1.0 and follow instructions in plugin configuration ;)
Pluign now works with Use Strict Mode for Redirect URIs enabled.
have you modified the plugin?
Thanks ; its working now without update. i will surely upgrade if problem re-occurred.
-
@surajthapa
You need to update plugin as latest facebook sdk is required, otherwise it will throw error that your domain was not added to app domains
-
it's still not work. any fix it please share idea
-
@dom
It's working for me alright so no other work will be done there, you've probably did not follow steps in configuration.
-
@MB Themes
i used your fb plugin version 1.1.0 it still the same problem
-
@dom
Error is related to different field than is on your screenshot (point 2).
Initial setup
1. Create your facebook application on https://developers.facebook.com/quickstarts/?platform=web.
2. Go to Settings > Basic > App Domains and enter there domain of your application
3. Go to Products > Facebook Login > Settings > Valid OAuth Redirect URIs and enter following link: https://xyz.com/index.php?page=custom&route=fblauth&fbLogin=1
4. In top right corner switch status of your app to live
But you must be sure all plugin files has been replaced, this error cannot be avoided with older version of facebook graph sdk.
-
i disable all plugins that use fb SDK but still not work
-
It works ok. :)
-
One problem... (Osclass 3.7.4)
Graph returned an error: Impossible de charger cette URL: Le domaine de cette URL n’est pas inscrit dans ceux de l’application. Pour pouvoir importer cette URL, ajoutez tous les domaines et sous-domaines de votre application au champ Domaines des paramètres de l’application.
2. Go to Settings > Basic > App Domains and enter there domain of your application - OK
3. Go to Products > Facebook Login > Settings > Valid OAuth Redirect URIs and enter following link: https://board.****.eu/index.php?page=custom&route=fblauth&fbLogin=1 - OK
4. In top right corner switch status of your app to live - OK
-
no ideas what is the problem?
-
Hey guys, the same for me. Nothing woreks neither with old neither with new FB API.
Removed plugin using FTP then added again.
Domain added in different format with and without WWW.
Redirect url also added different:
https://xyz.com/index.php?page=custom&route=fblauth&fbLogin=1
https://xyz.com/fblauth-1/
https://xyz.com/fblauth-1/index.php?page=custom&route=fblauth&fbLogin=1
It proceeds to open FB and to ask user to validate data sharing after ok it shows the next result.
Graph returned an error: Can not load URL: The domain of this URL is not included in the application's domain. To download this URL, add all your application's domains and subdomains in the domain of the app in its settings.
Any ideas why?
What may I miss?
Thank you.
-
Check on google if this error is related to these urls or to domain
-
Unfortunately, nothing connected to domain names helps fix the situation.
Everything writes that it may be because of old facebook library or missing parameter in PHP code.
I see that a lot of people here has the same error.
The link where it stucks looks like this:
https://mydomain.com/fblauth-1/?code=AQD16....a lot of chars as token....
And if I take this link it is not considered as correct redirect URI in facebook app panel.
May it be connected to this?
-
muchs users same problem no have solution?
-
Unfortunately, nothing connected to domain names helps fix the situation.
Everything writes that it may be because of old facebook library or missing parameter in PHP code.
I see that a lot of people here has the same error.
The link where it stucks looks like this:
https://mydomain.com/fblauth-1/?code=AQD16....a lot of chars as token....
And if I take this link it is not considered as correct redirect URI in facebook app panel.
May it be connected to this?
You got error on domains, not on return url
-
@suraj
I was updating osclasspoint. We've used madhouse facebook login however this will not be usable anymore - it use old sdk that adds to redirect URI variables, so it is impossible to set it.
I've used our Facebook Login plugin and works ok with url:
https://osclasspoint.com/?fbLogin=1&scope=public_profile,email
I think error you shown is caused by other url, /user/register as it does not goes to root directory
//EDIT:
- validator tells redirect uri is valid
- when I push login button, it tells redirect uri is not in list (lol)
- that restriction cannot be turned off so I needed to use older app to be able to have facebook login
- problem is probably that facebook sdk encode url... not sure... it does not make too much sense
no work
-
Unfortunately, nothing connected to domain names helps fix the situation.
Everything writes that it may be because of old facebook library or missing parameter in PHP code.
I see that a lot of people here has the same error.
The link where it stucks looks like this:
https://mydomain.com/fblauth-1/?code=AQD16....a lot of chars as token....
And if I take this link it is not considered as correct redirect URI in facebook app panel.
May it be connected to this?
You got error on domains, not on return url
this is what has its integrated button also add that link in Redirec url and it does not work http://prntscr.com/kgysq3 http://prntscr.com/kgytg0
-
https://tobaratos.com/?fbLogin=1&scope=public_profile,email
Blocked URL: The redirect failed because the URI is not included in the white list of the OAuth client settings of the application. Verify that OAuth client access and OAuth web access are enabled, and add all domains in the application as valid OAuth redirect URIs.
-
I am getting the same error.
I have added https://bazaar.city and https://www.bazaar.city on my URI redirection however still getting the same error.
Can someone please help me?
I tried the below but it does not take the complete url.
https://bazaar.city/index.php?page=custom&route=fblauth&fbLogin=1
This the error:
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s
Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
thanks for any suggestions!
-
@bengalliboy
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s
Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
Not quite sure what else could be said.
Btw. https://bazaar.city/index.php?page=custom&route=fblauth&fbLogin=1 gives you error 404