This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

surajthapa

  • **
  • 16 posts
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 :'( :'(
« Last Edit: March 29, 2018, 08:18:45 AM by surajthapa »

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #1 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
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

surajthapa

  • **
  • 16 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #2 on: March 20, 2018, 08:04:25 PM »
Unfortunately I cant disables those two option? any idea? any other solution?

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #3 on: March 20, 2018, 08:52:18 PM »
@surajthapa
Will check it once I get some time.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #4 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
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

surajthapa

  • **
  • 16 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #5 on: March 21, 2018, 08:16:23 AM »
It returns Invalid URL

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #6 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
« Last Edit: March 21, 2018, 09:26:26 AM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

surajthapa

  • **
  • 16 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #7 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.

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #8 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on March 21, 2018, 12:30:16 PM
*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #9 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

surajthapa

  • **
  • 16 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #10 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.



*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #11 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

surajthapa

  • **
  • 16 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #12 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.

*

MB Themes

Re: Nothing happens after facebook login requests is authenticated
« Reply #13 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
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Locan

  • ****
  • 166 posts
Re: Nothing happens after facebook login requests is authenticated
« Reply #14 on: March 21, 2018, 02:24:32 PM »
it's still not work. any fix it please share idea