PHPoAuthLib icon indicating copy to clipboard operation
PHPoAuthLib copied to clipboard

Facebook login issue

Open victorelu opened this issue 10 years ago • 3 comments

When attempting to login with Facebook but not being logged in with it (basically, having to input the Facebook credentials), the oauth callback url stays blank but refreshing it shows the login worked.

The error log shows this: ERROR - 2015-06-11 08:27:10 --> Severity: Warning --> file_get_contents(https://graph.facebook.com/oauth/access_token) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request [/...]/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php 63

Is this a Facebook problem or a library problem?

victorelu avatar Jun 11 '15 14:06 victorelu

Looks like a library issue. Can you please bring here your script?

logical-and avatar Jun 12 '15 19:06 logical-and

I have same issue php 5.5.9

my fix

$serviceFactory = new \OAuth\ServiceFactory();
$serviceFactory->setHttpClient(new \OAuth\Common\Http\Client\CurlClient());

arduanov avatar Jul 03 '15 14:07 arduanov

Does it happens on updated library?

logical-and avatar Jul 09 '15 19:07 logical-and