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

Could not connect to Twitter. Refresh the page or try again later. Error #2

Open
ghost opened this issue Aug 4, 2013 · 5 comments
Open

Comments

@ghost
Copy link

ghost commented Aug 4, 2013

I've just integrated your library to my project but i'm getting this error always. I setted consumer key and secret one in config. My project on "http://demo.emu.com.tr/tst/uzuntweet/redirect". My application type is "read & write". My callback url is "http://demo.emu.com.tr/tst/uzuntweet/callback". So why am i getting this error when i tryo to login? Please help asap.

@MohammedFadin
Copy link

The author of this library is inactive, at least nowadays.

Anyway, I just checked your URL, it's working fine. Connection been established successfully.

Thanks!

@albpara
Copy link

albpara commented Nov 29, 2013

Same error here... I'm not familiar with OAuth so I'm not able to figure out what is going bad with the library. I will try to fix this.

The complete error was:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: oauth_token
Filename: libraries/twconnect.php
Line Number: 126

@floreabogdan
Copy link

@albpara: Sounds like you have query strings disabled in CodeIgniter. To enable query strings, go to application/config/config.php and set $config['enable_query_strings'] = TRUE;

@albpara
Copy link

albpara commented Nov 29, 2013

It's working!!

Just for the record, on twitter developers web page the value on "Callback URL" must be set. If not... the Sing In will not work and you will get an error like this: Desktop applications only support the oauth_callback value 'oob'

Thanks for the help @floreabogdan

@albpara
Copy link

albpara commented Dec 1, 2013

After enabling query strings for the library, all the urls generated by site_url() are messed up...

site_url('foo/bar') returns http://www.example.com/?foo/bar insted of http://www.example.com/foo/bar

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

3 participants