The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook Callback bug
#1
Hello.

Great login platform; thank you for providing it. I studied it the other day and downloaded it yesterday. been configing it. I just got FB app connected and discovered a bug on the callback. Found a solution on overstack due to not finding it here in the forum.

Error
Facebook SDK returned an error:
Cross-site request forgery validation failed.
The "state" param from the URL and session do not match.

Fix:
insert this code after $helper = $fb->getRedirectLoginHelper(); --Line 23 on fb-callback.php
Code:
$_SESSION['FBRLH_state']=$_GET['state'];


Reference
https://stackoverflow.com/questions/3202...-failed-th
  Reply
#2
Thanks for this! This will go in our next patch!
  Reply
#3
Sorry. I missed this, but I have it in 4.3 and will probably roll it backwards to 4.2.11
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)