Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB Login -> Error: Undefined offset: 1 #220

Open
amsmithmt opened this issue Jan 5, 2020 · 0 comments
Open

FB Login -> Error: Undefined offset: 1 #220

amsmithmt opened this issue Jan 5, 2020 · 0 comments

Comments

@amsmithmt
Copy link

Hi,

A new installation of the SDK, I'm getting Error: Undefined offset: 1 on facebook login during the callback.

Script file referenced is
vendor\facebook\graph-sdk\src\Facebook\Http\GraphRawResponse.php

Line 108

Below code in the graph sciprt file:

public function setHttpResponseCodeFromHeader($rawResponseHeader)
    {
        preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
        $this->httpResponseCode = (int)$match[1];
    }

Does anyone have a suggestion for fixing this?

The callback itself comes as https://mywebsite/facebook/callback?code=

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant