'https://api.twitter.com/oauth/authorize?oauth_token= ' No Oauthtoken generated


#1

I had twitter login successfully working for my site. I use the EpiTwitter api for this implementation.However today when i tried login in login was unsuccessful as in it didnt return any of the user info.Then after reading about the changes made i too made those changes in the EpiTwitter.php file

class EpiTwitter extends EpiOAuth
{
const EPITWITTER_SIGNATURE_METHOD = ‘HMAC-SHA1’;
protected $requestTokenUrl = ‘https://api.twitter.com/oauth/request_token’;
protected $accessTokenUrl = ‘https://api.twitter.com/oauth/access_token’;
protected $authorizeUrl = ‘https://api.twitter.com/oauth/authorize’;
protected $apiUrl = ‘https://api.twitter.com/1/’;
but now i get this error

'Whoa there!

There is no request token for this page. That’s the special key we need from applications asking to use your Twitter account. Please go back to the site or application that sent you here and try again; it was probably just a mistake.'
with the link as given in summary. Clearly no oauth_token value is generated for the login link.
On my applications page on twitter i do get the access token and accesstoken secret but i am not sure where to use it!!!
i wonder what is going wrong cos everything was working veryfine!!


#2

You’ll probably need to get more intimate with your code and the library you use to determine what’s going wrong. What do you use the code for? Do you typically just use a single account or access token or is this a multi-user service where you auth end-users? EpiOAuth and EpiTwitter are somewhat outdated libraries – have you considered moving to a more modern library?


#3

Official Nasıl yapabilirim çalıştığım sanatcının adresini ?


#4

I use it for a multi user service to allow people to log into my site. I think i should take your suggestion and should move to new library.That sounds to be the best bet right now.:slight_smile:


#5

well thank you all… i ve implemented it using twitteroauth :slight_smile:


#6

How to use api.twitter.com/oauth/authorize


#7

Do you mean you want users to log in to your website using a twitter account?!


#8

I’ve the same problem here. Twitter was working ok, untill Oauth module for many users.
I want people to login with Twitter and place their own articles, that come in the twitterblock on my website. I see

Use the access token string as your “oauth_token” and the access token secret as your “oauth_token_secret” to sign requests with your own Twitter account. Do not share your oauth_token_secret with anyone.

Access token
Access token secret
Access level Read, write, and direct messages

Access level Read, write, and direct messages
About the application permission model
Consumer key
Consumer secret
Request token URL
Authorize URL
Access token URL
Callback URL
Your access token

Use the access token string as your “oauth_token” and the access token secret as your “oauth_token_secret” to sign requests with your own Twitter account. Do not share your oauth_token_secret with anyone.

Access token
Access token secret
Access level Read, write, and direct messages


#9

Well i had the same problem, now i just changed to twitteroauth and it works fine as of now :slight_smile:


#10

Can you help me to say what url’s I’ve to use?
Consumer key: (oauth or twitter?)
Consumer secret (oauth or twitter?)
And where I can change this?
Request token URL
Authorize URL
Access token URL


#11

well yes… After you download the library you will find the documentation and the test.php file which can be helpful. Yet here are a few pointers:

  1. In the config.php file you will have to use the consumer key , consumer secret and the callback address(thats the php file that will be invoked after the user has logged in thru twitter)
  2. You have the redirect.php to which the user should be directed on clicking “Login with twitter”.This redirect.php will then forward the request to the “Authorised login URL”(You dont ve to generate this!!!).You dont ve to do much here!!
    3.callback.php is where the user is taken after successfully login in via twitter this in turn on successful login will take the user to index.php.Here (in index.php) try making this call print_r($content);
    Try it… Its simple.You dont ve to change the request token or authorise url or even the access token url.Try the above steps.(ofcourse make appropriate changes to the flow for your application)

#12

Anyway thanks for your answer. I try to find out what you say.
For the moment I can set the Consumer key and Consumer secret. Than appears the button on my site “sign in with twitter”. And I can login with it and make an article. Drupal says that its posted succefully on Twitter, but it doesn’t appear in the time line.


#13

If you are using EpiTwitter library, there’s no need to change the whole thing…

You just have to update the URL where it points…

It used to be http://twitter.com/oauth/request_token

and now it is http://api.twitter.com/oauth/request_token

Please Twitter folks…stop messing with the thingy!

hehe…


#14

no not woking


#15

still not working…geez !!! I changed also http://api.twitter.com/oauth/request_token with https…also nothing…any help?


#16

I got a same problem and my auth_token is blank or null. Can anyone help me I got this message

Whoa there!

There is no request token for this page. That’s the special key we need from applications asking to use your Twitter account. Please go back to the site or application that sent you here and try again; it was probably just a mistake.


#17

Facing same problem…


#18

hello mate have a quick question do you know where should i upload twitteroauth library files so then i can solve my problem.


#19

I’ve got the same problem. Every field of JSON represent token are blank!!!

The response token is something like this:

oauth: {“realm”:"",“requestTokenUrl”:"",“authorizationUrl”:"",“accessTokenUrl”:""}

Please, need help!


#20

Me have problem on my twitter on mobile ican’t open my rquest !!!?