New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot update geo #32
Comments
Is geo enabled on the account you are trying to tweet to? Users can choose whether geo is enabled or not. It geo is disable the Twitter API will silently ignore the lat/long parameters. This is documented on dev.twitter.com in the statuses/update documentation: https://dev.twitter.com/docs/api/1/post/statuses/update |
Thanks for your help. Yes the account is geo enabled. I used the PERL script on that account and it worked. |
Interesting, can you try again but this time var_dump the tmhOAuth connection when it finishes. I'd like to see the request params and how they are formatted. When you copy the tmhOAuth object remember to remove the consumer_secret and oauth_secret (and any other information you don't want to share publicly) |
oops! I can now. Using your sample code all works well. The code from http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php/ seems to fail. Sorry to waste time return $connection->response['code']; |
Great, glad you got it working! |
$connection->url('1/statuses/update'), array("status" => $tweet_text, "lat" => $lat, "long" => $long, "display_coordinates" => 'true'));
Status is updated lat and long silently fail.
With Net-Twitter (Perl) this works
my $result = $nt->update({status => $tweet_text, lat=> $lat, long=>$long});
The text was updated successfully, but these errors were encountered: