artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
684 stars 216 forks source link

Failed to request resource. #77

Open CodeKJ opened 10 years ago

CodeKJ commented 10 years ago

When signing in with Facebook account there are error: OAuth \ Common \ Http \ Exception \ TokenResponseException Failed to request resource.

Issue appears to be with: $token = $fb->requestAccessToken($code);

Everything works fine on my local server. No issues. Problem appears only when I put my site on hosting.

I have checked previous issues with same error, but nothing fixed it. Hosting PHP.ini configurations are almost same as mine. OpenSSL enabled allow_url_fopen=On

I am out of options, so I hope someone have solution to this, what could cause this error.

ghost commented 10 years ago

Were you able to resolve this? I am having the same issue.

CodeKJ commented 10 years ago

Hosting provider were using CurlSSL. Must use OpenSSL (even thou they PHP configuration said OpenSSL is enabled, it was not). So I moved to another provider and it was working fine.

tuyenlaptrinh commented 10 years ago

I'm having same trouble. Please help me.

mkovalch commented 9 years ago

Hey guys, having the same issue with Google oAuth. I have OpenSSL enabled in PHP ini. Any advice? Gracias.