Osclass Support Forums

Osclass plugin support => Free Osclass Plugins => Facebook Login Plugin => Topic started by: surajthapa on March 20, 2018, 01:58:32 PM

Title: Nothing happens after facebook login requests is authenticated
Post 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 :'( :'(
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 20, 2018, 03:28:40 PM
@surajthapa
I would try to uncheck:
- Use strict mode for redirect URIs
- Enforce HTTPS for Web OAuth Login
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: surajthapa on March 20, 2018, 08:04:25 PM
Unfortunately I cant disables those two option? any idea? any other solution?
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 20, 2018, 08:52:18 PM
@surajthapa
Will check it once I get some time.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 20, 2018, 08:55:56 PM
Try to use this URL in fb app settings as valid (just tip):
https://your_url.com/?fbLogin=1&scope=public_profile,email
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: surajthapa on March 21, 2018, 08:16:23 AM
It returns Invalid URL
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 08:58:48 AM
@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
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: surajthapa on March 21, 2018, 11:00:09 AM
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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 11:23:54 AM
@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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 12:30:10 PM
@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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: surajthapa on March 21, 2018, 01:26:49 PM
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.


Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 01:32:23 PM
@surajthapa
You should enable it as soon they will check this for you or disable your app at all.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: surajthapa on March 21, 2018, 01:33:06 PM
@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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 01:55:52 PM
@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
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Locan on March 21, 2018, 02:24:32 PM
it's still not work. any fix it please share idea
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 02:32:38 PM
@dom
It's working for me alright so no other work will be done there, you've probably did not follow steps in configuration.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Locan on March 21, 2018, 02:43:32 PM
@MB Themes

i used your fb plugin version 1.1.0 it still the same problem
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on March 21, 2018, 02:46:56 PM
@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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Locan on March 21, 2018, 02:56:07 PM
i disable all plugins that use fb SDK but still not work
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Gile on March 23, 2018, 12:51:02 AM
It works ok.  :)
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Del3x on March 31, 2018, 04:34:58 PM
One problem... (Osclass 3.7.4)

Code: [Select]
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

Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Del3x on April 03, 2018, 06:39:16 PM
no ideas what is the problem?
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Vasya Kutsyk on June 20, 2018, 11:55:48 PM
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.

Code: [Select]
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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on June 21, 2018, 09:07:08 AM
Check on google if this error is related to these urls or to domain
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Vasya Kutsyk on June 22, 2018, 04:13:40 PM
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?
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Lopetoms on August 08, 2018, 03:40:34 PM
muchs users same problem no have solution?
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on August 08, 2018, 09:16:17 PM
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
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Lopetoms on August 10, 2018, 11:08:40 AM
@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
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Lopetoms on August 10, 2018, 11:11:16 AM
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
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: Lopetoms on August 10, 2018, 11:33:28 AM
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.
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: bengalliboy on December 25, 2020, 02:16:54 AM
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!
Title: Re: Nothing happens after facebook login requests is authenticated
Post by: MB Themes on December 25, 2020, 03:03:23 PM
@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