-
Notifications
You must be signed in to change notification settings - Fork 216
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
TokenResponseException #21
Comments
artdarek : i have this error with facebook ,, can you help up ?! |
This will happen if you're trying to make a request with the same code twice. Regards, |
@ikanc I'm sending the authResult['code'] via ajax to this URL, then sending this code off using |
same error with facebook i try auth in local is normal. seem lusitanian can't storage session /app/storage/sessions |
I had same error with facebook and google. Check php.ini in the server and set and use session_save_path(...) before session_start() |
I think this is the reason the request needs to be ssl. The URL used when authenticating a user is https://accounts.google.com/o/oauth2/auth. This endpoint is accessible over SSL, and HTTP connections are refused. |
I'm having the same problem trying to login with Facebook. I think that @artdarek might not have time to look at this issue right now, so I posted a question to Stack Overflow: http://stackoverflow.com/q/21720838/2948042 I'm currently working with localhost and the JavaScript API works, so I think my app configuration is correct. Does anyone have this working? If so, please share what you did to make it work. Thank you. |
hi, @joshbrw in your This resolved the problem. |
Having this issue as well with Facebook on a local server. |
Have the same problem with Vkontakte on my localhost. Could somebody help to solve it? |
Make sure you allow PHP SSL and your Firewall is not blocking. Best Regards, On Thu, May 1, 2014 at 7:26 AM, Will Najar notifications@github.com wrote:
|
@ikanc I'm behind a proxy server. Can it cause problems? And if so, how can I configure it in my application? |
I am not familiar with VKontakte much, but I would suggest first to check You can make sure that your PHP can open SSL sites with a simple Best Regards, On Tue, May 6, 2014 at 7:23 PM, Taras notifications@github.com wrote:
|
@ikanc, have such result:
So, this is the problem, isn't it? Should I install and configure ssl for apache? |
Yes, although, the issue is not in your apache, but in the PHP. Best Regards, On Tue, May 6, 2014 at 7:56 PM, Taras notifications@github.com wrote:
|
But in my phpinfo() |
Wow! I found out what was the problem - I'm behind the proxy. Warnings disappeared and I got facebook page when I've configured proxy settings for file_get_contents(). |
I had same issue and i also fixed this problem by turning ON the allow_url_fopen at php.ini since we're using file_get_contents(). |
None of solutions presented here have fixed the problem for me. I had to switch it to use CurlClient, which make it work. I also think file_get_contents() should not be used - as the name suggests this is to load the content of a file, not make an API call. I think you should remove StreamClient and use CurlClient by default. |
@elcct Please provide a pull request or whatever for your solution. It worked fine for me even online, but at some point it just stopped working.. |
@elcct how exactly did you switch to CurlClient instead? :D |
@cyruxx in order to use CurlClient instead of the default, StreamClient , specifiy it before you call the Here's my example:-
Although this is abit old, I hope this helps for any future readers :) |
👍 |
@FeliciousX it helped me, thanks! |
@davidsneal welcome! Glad to be of help 😄 |
@FeliciousX thank you! |
I just found out that for Facebook, if you set your application Desktop application, token fails and you get the same error. After disabling Desktop/Native app checkbox everything worked fine. |
@FeliciousX @cyruxx where is the location of the file that those edits should be made? I cant find those lines of code anywhere :( |
@rrbailey89 anywhere on your codebase just before you call |
@FeliciousX that's the thing I'm using phpbb 3.1.8 I have looked thru probably over 50 different files for that line of code and in not seeing it. I was hoping someone here might be able to tell me where the edit about be made. This is the forum software I'm using https://www.phpbb.com/files/release/phpBB-3.1.8.zip |
When trying to get a access token using the
requestAccessToken($code)
method, I am getting this returnedAny ideas?
The text was updated successfully, but these errors were encountered: