Notice: Undefined index: oauth_token in twitteroauth.php


#1

Hi,

I’m trying to connect via twitter but I am getting below mentioned error.
Notice: Undefined index: oauth_token in twitteroauth.php

I know this can be resolved by mentioning the callback URL in account settings.
After adding callback url, my code works properly. But my ios app stop working.

And when i remove that my ios app work fine and my desktop app gives above error.

I know this situation can be overcome using PIN(OOB) method but I want to do it the other way i.e. like with callback url.

Please suggest.


#2

You should be able to solve this by passing an oauth_callback as needed when getting a request_token.

https://dev.twitter.com/docs/api/1/post/oauth/request_token