oauth-4-laravel icon indicating copy to clipboard operation
oauth-4-laravel copied to clipboard

Failed to request resource.

Open CodeKJ opened this issue 11 years ago • 4 comments
trafficstars

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.

CodeKJ avatar Jun 18 '14 15:06 CodeKJ

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

ghost avatar Jul 04 '14 15:07 ghost

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.

CodeKJ avatar Jul 04 '14 15:07 CodeKJ

I'm having same trouble. Please help me.

tuyenlaptrinh avatar Jul 31 '14 09:07 tuyenlaptrinh

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

mkovalch avatar Dec 30 '14 09:12 mkovalch