Authorize "" to use your account? keep appearing


#1

Hi everyone.
I am having a problem, when someone tries to login with the twitter option always appears the authorization message, no matter if the user already clicked the authorize app, what i am doing is redirecting the user to:

https://twitter.com/oauth/authorize’?oauth_token={$token}

this always sends the user to the authorize page, if i put :

https://twitter.com/oauth/authenticate’?oauth_token={$token}
https://twitter.com/oauth/authenticate’?oauth_token={$token}

this sends the user to a page where she/he has to click the sign in button.

what i want to do is if a user already accepted the app the next time he/she logs in with twitter doesn’t have to authorize again.

any help is apreciated, sheers


#2

I have the same problem.


#3

The authenticate endpoint should just do a redirect if the user is logged into Twitter and has previously approved your app (and not revoked access). Is this not the case you’re seeing?


#4

same issue here ?!!! i do not know what is the problem !!


#5

I’ve the same problem here :frowning:


#6

https://twitter.com/oauth/authenticate?oauth_token=ACCESSTOCKEN but it not ask to login & redirect page … which url i fire to login with appl .


#7

The correct URL is https://api.twitter.com/oauth/authenticate


#8

Hi,
I have implemented Twitter in android application.
So when i log in to twitter, so i get an authorization screen describing that "Authorize to use your account?"
So my question is that, for some accounts i am getting blank authorization screen when i try to log in.
Can you please tell me what is the problem?

Please do some needful.


#9

Yes it does, but what happens if :

the user has approved my app, but he is not logged into Twitter…
I would like the api just to ask him to log in instead of “approve” the application…

Do you know if this is possible ?
(With Facebook, it is !!)


#10

Should the flow be to authorize once and then authenticate from then on?

Would a better flow be to authenticate, check for permissions and if authorization hasn’t occurred redirect to the authorization url?


#11

Hi @kurrik , its( the problem reported by @johnnygamba) happening in my system too, I am using oauth/authenticate end point (on Samsung bada mobile OS).
Please help us…


#12

@kurrik I’m facing the same problem as well. I’ve authenticated my account a hundred times, but still nothing has changed. I would really appreciate it if you could tell me how to fix this mess.


#13

i’m trying to post tweet with twitter integration in iPhone.i’m facing some problem
here is my code:

//consumer= [[OAConsumer alloc] initWithKey:kOAuthConsumerKey secret:kOAuthConsumerSecret];
NSString *trimmedText=[NSString stringWithFormat:@"%@",tweetText.text];

NSURL *url=[NSURL URLWithString: @"https://api.twitter.com/1/statuses/update.json"];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:trimmedText forKey:@"status"];

NSLog(@"params=%@",[params objectForKey:@"status"]);
//NSString *body = [self _queryStringWithBase:nil parameters:params prefixed:NO];

NSData* requestData = [[params objectForKey:@"status"]dataUsingEncoding:NSASCIIStringEncoding];
NSLog(@"requestData=%@",requestData);


OAMutableURLRequest *request = [[[OAMutableURLRequest alloc] initWithURL:url consumer:consumer token:accessToken realm: nil signatureProvider: nil] autorelease];  

[request setHTTPMethod:@"POST"];
//[request setHTTPBody:requestData];

OADataFetcher *fetcher = [[OADataFetcher alloc] init];

[fetcher fetchDataWithRequest:request
                     delegate:self
            didFinishSelector:@selector(didReceiveAccessToken:data:)
              didFailSelector:@selector(didFailOAuth:error:)];

now it’s showing error like: httpbody={“error”:“Client must provide a ‘status’ parameter with a value.”,“request”:"/1/statuses/update.json"}.

when i uncomment that [request setHTTPBody:data] it showing error index 1 beyond bound[0…0]
can u please help i’m new to this development


#14

–deleted–


#15

I m facing the same problem for http://www.topdocumentarystream.com/


#16

Hi,

I am facing problem how to get direct messages from twitter account. please help me if you have any relevant solution.


#17

Same problem everywhere. Any response?


#18

Everything working fine here


#19

What URL are you using?


#20

Same problem, if I save AccessToken, how can I know if the user has granted access to my app, I think I’m very close to the answer, but I can’t find it