Did anyone have an answer to the issue that @pscine was having? I have the same issue that I have been working on for a couple of days.

Well, I’m tickled pink to have found this after spending the last few days digging around my code trying to fix this…thing that wasn’t broken. This is no good for cats like me who struggle mightily with API codes and the like.

That said, maybe someone can see where I botched this?

I’ve downloaded the latest Twitteroauth package, and run the test.php successfully, I’;m connected to my app, the works, but I’m not able to post to my status. Can anyone see where my code has gone south?
require_once(‘twitteroauth_master/twitteroauth/twitteroauth.php’);
require_once(‘twitteroauth_master/config.php’);

session_start();
/* If the oauth_token is old redirect to the connect page. */
if (isset($_REQUEST[‘oauth_token’]) && $_SESSION[‘oauth_token’] !== $_REQUEST[‘oauth_token’]) {
$_SESSION[‘oauth_status’] = ‘oldtoken’;
header(‘Location: ./clearsessions.php’);
}

/* Create TwitteroAuth object with app key/secret and token key/secret from default phase */
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION[‘oauth_token’], $_SESSION[‘oauth_token_secret’]);

/* Request access tokens from twitter */
$access_token = $connection->getAccessToken($_REQUEST[‘oauth_verifier’]);

$content = $connection->get(‘account/verify_credentials’);
$connection->post(‘statuses/update’, array(‘status’ => $tmessage));

I’m at my wits end…as I’m sure many others are, as well…any and all insight is appreciated.

@CyG_ONE
@garrettmurray

Thanks guys, every thing is ok :slight_smile:

Even if I have :
$access_token = $connection->getAccessToken($_REQUEST[‘oauth_verifier’]);
it’s not working for me…

Doing :
function accessTokenURL() { return ‘https://api.twitter.com/oauth/access_token?oauth_verifier='.$_REQUEST['oauth_verifier’]; }

instead of :
function accessTokenURL() { return 'https://api.twitter.com/oauth/access_token; }

in twitteroauth.php is working for me… Hope it helps someone…
Have a good day.

I have a android application on android. I integrated twitter for posting high-score to Twitter. I worked perfectly about one month ago. But it’s not working right now. It seems like i can not get the token and secret token from server.

“oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: Received authentication challenge is null”

Can anyone tell me how to fix it? I test other game like Temple Run 2 and it also can not login to twitter.

can anyone give the link to how to download and fix the twitter api… i m juzzzz new

How to use http://api.twitter.com/oauth twitter client

Hi i have a kindle fire and when i turned it on to my twitter all my tweets are gone What Should i Do?

what is a url and where do I find it I keep being ask for it? I dont have one or dont know it?

have you got the answer about how to pass “oauth_verifier” ? please share with me

just so you feel better, my app was working until a couple of days ago and I had to edit it again and again and again. Still can’t figure out what the “flipping” and the “tweaking a bit” (their words when things change overnight) is this time. Not everyone is a developer here. I was doing this (web development) because it was fun. I am about to take out twitter integration from my websites though because it isn’t so much fun anymore. Does anyone have a clue of what change they might have made in the 1.1 API in the past week? If someone knows, please help.
None of the php libraries I had edited is working anymore.

any one please give me the code for authentication of user using twitter step by step . I have tried using net.tutsplus.com and 9lessons.com.

I m using abrahms php outhand i m getting internal server error 500 exact call of function getRequestToken() of twitteroauth.php.

Argh! This documentation is maddening!..EVERY stinking time I try to add oauth_callback to overide the application callback for “request_token” I get 401 unauthorized error.

Yet you clearly state I MUST pass oauth_callback for every POST/REQUEST_TOKEN

Would someone from Twitter Address this?

this has really caused us lots of problems!!!

Anyone have a solution for OAuthConsumer.Framework and MGTwitterEngine on OS X? I used that in code and was working fine till this callback bullshit and verifier problem. Really Twitter?? is it that necessary to break everyone’s apps?

Also can you update the information given in the App OAUTH setup on your own site, none of those generated codes actually work either. I get the same 401 error with your code as I do with my own.
–edit: adding more complaining.

<?xml version="1.0" encoding="UTF-8"?> /oauth/access_token Invalid / expired Token <?xml version="1.0" encoding="UTF-8"?> /oauth/access_token Invalid / expired Token

API V1 원상태로 복구하고 싶어요.

Thank you so much!! This fixed it for me!!

Verify that you are connecting to:
https://api.twitter.com

and NOT

http://twitter.com

That was my problem.

Hi, I´m a spanish student and I’m starting to create an application.
I would like to know if i can make simultaneous calls to Streaming API with the same user. For example:

https://stream.twitter.com/1.1/statuses/filter.json?track=winter

and

https://stream.twitter.com/1.1/statuses/filter.json?track=summer

I want to do it with different requests but I don’t know if it is possible. I try to test it in my browser but I don’t know what user and pass I have to write.

Can anyone help me?