Saturday, July 21, 2012
php twitter: undefined index: oauth_token_secret
The problem is that there is an error in the request so you don't get oauth_token_secret in the respond from Twitter. Instead you get an error message.
Turn of php notice by typing the following at the top of the page
error_reporting(E_ALL ^ E_NOTICE);
print_r() the $request_token or $request variable to the screen. It will show you the type of error returned by twitter
print_r($request_token );
An example of the error message when you print the array is "Desktop applications only support the oauth_callback value 'oob' /oauth/request_token?oauth_callback=...."
Go to your app settings on twitter and make the correct settings.
In the case of the above error, set the callback url to the one you send in the request and try again!!
Good Luck.
Subscribe to:
Post Comments (Atom)
Hi, my error is "Array ( [Failed to validate oauth signature and token] => ) " could you help me to fix it??
ReplyDeleteThanks a lot ! It solves my problem !
ReplyDeleteon twitter how to make the correct settings.
ReplyDeleteBorgata Hotel Casino & Spa - DRMCD
ReplyDeleteBorgata Hotel Casino & Spa has a large number 충청북도 출장마사지 of 남양주 출장마사지 room types, including Bed and Breakfast Beds, and 나주 출장마사지 an express check-in Address: 인천광역 출장샵 1 Borgata Way, Atlantic 파주 출장마사지 City, NJ, 08401