Cannot reproduce Facebook Login

toanalien

New member
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

  • upload_2015-11-15_17-24-46.webp
    upload_2015-11-15_17-24-46.webp
    18.5 KB · Views: 12
Last edited:
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.
 
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.
 
Top Bottom