On trying to use the 7.x-3.x-dev version with Identi.ca, Add Twitter account in user/edit gives
Bad Request
No oauth_token parameter provided.
and on returning to site the warnings on the config page say
Notice: Undefined variable: response in TwitterOAuth->get_request_token() (line 289 of var/www/dev/sites/all/modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token in TwitterOAuth->get_request_token() (line 290 of /var/www/dev/sites/all/modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token_secret in TwitterOAuth->get_request_token() (line 290 of /var/www/dev/sites/all/modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token in TwitterOAuth->get_authorize_url() (line 296 of /var/www/dev/sites/all/modules/twitter/twitter.lib.php)
Comments
Comment #1
agileox commentedI get the same problem. I have successfully set up the twitter module twice with same versions and same settings (except with a different twitter account) on other sites on the same server and never ran into this before. Cannot add a twitter account to a user.
Comment #2
juampynr commentedGuys, if you just want to pull tweets from an account, you do not need Oauth. Please try disabling oauth_common and then try again.
Comment #3
rabisg commentedIn my case, OAuth is required as it involves posting to identi.ca too
any suggestions where we might start looking?
this is the url that is being sent
https://identi.ca/api/oauth/authorize?oauth_token=
Comment #4
juampynr commentedHere http://status.net/wiki/Twitter-compatible_API#OAuth_authentication
Comment #5
juampynr commentedYou can also install XDebug and configure it to trace everything that happens during the request.
See http://xdebug.org/docs/execution_trace
Comment #6
agileox commented@rabisg
Make sure you are using the Consumer Key and Consumer Secret that is listed under OAuth Settings on dev.twitter.com and NOT THE ACCESS TOKEN AND SECRET.
Comment #7
rabisg commented@agileox
Twitter's working fine. Identi.ca is causing the problem
And im sure im using the right key because i could get it authenticated using a standalone twitter library modified to use Identi.ca
Comment #8
rabisg commentedI think i've figured out the problem. Identi.ca's API does not seem to be working with relative urls like http://example.com/?q=twitter/oauth which it recognizes as invalid URL and thus it returns invalid callback error. Clean URLs work fine.
Comment #9
juampynr commented@rabisg? Does your last comment then fixes the issue. Then please set it as fixed.
Comment #10
rabisg commentedComment #11
juampynr commentedGreat stuff. Do let me know if you need further help.
Comment #12
rabisg commentedThanks jaumpy.