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

Cannot Reproduce Facebook Login

Discussion in 'Resolved Bug Reports' started by toanalien, Nov 15, 2015.

  1. toanalien

    toanalien New Member


    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')


    After changed, It works normally.

    Attached Files:

    Last edited: Nov 15, 2015
  2. Chris D

    Chris D XenForo Developer Staff Member

    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. toanalien

    toanalien New Member

    I don't have any licenses in XenForo.
  4. Chris D

    Chris D XenForo Developer Staff Member

    Then you shouldn't have access to the code.
    Amaury likes this.

Share This Page