• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Cannot reproduce Facebook Login

#1
Hello,

Facebook returns code within length > 265 characters, so in function getAccessToken can not use XenForo_Helper_Http::getClient namespace.

Solved : change on file library\XenForo\Helper\Facebook.php

line 30 : setParameterGet -> setParameterPost
line 37 : request('GET') -> request('POST')

https://gist.github.com/toanalien/19f16a2711a39c30799b

After changed, It works normally.
 

Attachments

Last edited:

Chris D

XenForo developer
Staff member
#2
The Facebook documentation explicitly specifies a GET request, so we wouldn't switch to using POST, here. There's no suggestion, even, that POST is supported.

Also, as you appear to have access to the code, you should be licensed. Please associate your forum username with your license to continue posting.
 
#3
The Facebook documentation explicitly specifies a GET request, so we wouldn't switch to using POST, here. There's no suggestion, even, that POST is supported.

Also, as you appear to have access to the code, you should be licensed. Please associate your forum username with your license to continue posting.
I don't have any licenses in XenForo.