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
/printthread.php 16 require_once



UserSpice
Facebook Callback bug - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Facebook Callback bug (/showthread.php?tid=593)



Facebook Callback bug - jdmfarms - 06-13-2017

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/32029116/facebook-sdk-returned-an-error-cross-site-request-forgery-validation-failed-th


Facebook Callback bug - mudmin - 06-20-2017

Thanks for this! This will go in our next patch!


Facebook Callback bug - mudmin - 09-09-2017

Sorry. I missed this, but I have it in 4.3 and will probably roll it backwards to 4.2.11