[Resolved] Twitter access_token error

Hi everyone, i’m having troubles implementing twitter on my app.

I execute this line to obtain the user information and app information.

local access\_response = responseToTable(oAuth.getAccessToken(authorize\_response.oauth\_token, authorize\_response.oauth\_verifier, twitter\_request\_token\_secret, consumer\_key, consumer\_secret, "https://api.twitter.com/oauth/access\_token"), {"=", "&"})

The problem is that return all of this as nil:

access_token = access_response.oauth_token
access_token_secret = access_response.oauth_token_secret
user_id = access_response.user_id
screen_name = access_response.screen_name

so… what i have to do is enter ir manually

access_token = “09Juud8Shfsd7s76vdyv6DYLD8vdusdh8sd876vysdbvd”
access_token_secret = “skdjvdv8d7v7SYv7sdDi887vdD87v0sdkk”

What am i doing wrong?

I have set the access to “Read and write” and i have specificated my web site as Callback URL (in settings and in the code). [import]uid: 105206 topic_id: 29227 reply_id: 329227[/import]

This looks like it is based on the older Twitter sample - have you tried the new one in CoronaSDK > SampleCode > Networking > Twitter? [import]uid: 52491 topic_id: 29227 reply_id: 117546[/import]

The new one is in Version 2012.840??

I was using the one that is in Techority tutorial

Thanks [import]uid: 105206 topic_id: 29227 reply_id: 117550[/import]

Thanks Peach, you’re right. I was using old documentations.

Thank you! [import]uid: 105206 topic_id: 29227 reply_id: 117554[/import]

where is the upadated code ?? [import]uid: 160777 topic_id: 29227 reply_id: 117568[/import]

In your corona SDK folder

CoronaSDK > SampleCode > Networking > Twitter [import]uid: 105206 topic_id: 29227 reply_id: 117585[/import]

Not a problem, thanks for posting location for dev_wp7 :slight_smile:

Marking as resolved!

Peach [import]uid: 52491 topic_id: 29227 reply_id: 117681[/import]

@nml,@peach pellen thnx [import]uid: 160777 topic_id: 29227 reply_id: 117834[/import]