Questions tagged [twitter]

Twitter is a microblogging service that lets users post short "Tweets" of up to 280 characters. These can also be posted via its API.

Twitter is a social networking and microblogging service that enables its users to send and read short status messages ("Tweets") - originally, up to 140 characters. Users can "follow" other users to build a social network, and can "retweet" messages they wish to propagate to their followers.

Private, direct messages to other users are possible, as well as public replies and "@mentions".

Messages can be tagged with particular topics using "hashtags" such as #stackoverflow. Messages can optionally be geo-tagged if sent from a GPS-equipped device.

Tweets can also be posted, read, and searched via its API https://developer.twitter.com.

24178 questions
752
votes
7 answers

What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

I've just noticed that the long, convoluted Facebook URLs that we're used to now look like this: http://www.facebook.com/example.profile#!/pages/Another-Page/123456789012345 As far as I can recall, earlier this year it was just a normal…
BoltClock
  • 630,065
  • 150
  • 1,295
  • 1,284
597
votes
15 answers

Twitter image encoding challenge

If a picture's worth 1000 words, how much of a picture can you fit in 140 characters? Note: That's it folks! Bounty deadline is here, and after some tough deliberation, I have decided that Boojum's entry just barely edged out Sam Hocevar's. I will…
Brian Campbell
  • 289,867
  • 55
  • 346
  • 327
472
votes
14 answers

Find objects between two dates MongoDB

I've been playing around storing tweets inside mongodb, each object looks like this: { "_id" : ObjectId("4c02c58de500fe1be1000005"), "contributors" : null, "text" : "Hello world", "user" : { "following" : null, "followers_count" : 5, …
Tom
  • 30,868
  • 31
  • 81
  • 104
296
votes
14 answers

Simplest PHP example for retrieving user_timeline with Twitter API version 1.1

Because of the Twitter API 1.0 retirement as of June 11th 2013, the script below does not work anymore. // Create curl resource $ch = curl_init(); // Set url curl_setopt($ch, CURLOPT_URL,…
fellowworldcitizen
  • 3,341
  • 3
  • 12
  • 17
237
votes
12 answers

{" was not expected.} Deserializing Twitter XML

I'm pulling in the XML from Twitter via OAuth. I'm doing a request to http://twitter.com/account/verify_credentials.xml, which returns the following XML: 16434938 Lloyd Sparkes
lloydsparkes
  • 2,744
  • 2
  • 21
  • 20
138
votes
13 answers

Sharing a URL with a query string on Twitter

I'm trying to put a Twitter share link in an email. Because this is in an email I can't rely on JavaScript, and have to use the "Build Your Own" Tweet button. For example, sharing a link to Google:
haydenmuhl
  • 5,462
  • 6
  • 23
  • 31
132
votes
8 answers

Pretty-Print JSON Data to a File using Python

A project for class involves parsing Twitter JSON data. I'm getting the data and setting it to the file without much trouble, but it's all in one line. This is fine for the data manipulation I'm trying to do, but the file is ridiculously hard to…
Zelbinian
  • 2,451
  • 5
  • 17
  • 20
123
votes
9 answers

Getting new Twitter API consumer and secret keys

I am working on a Twitter project where I want to use OAuth but I don't know where to get the consumer and secret keys. How can I get these?
Pankaj Mishra
  • 19,129
  • 14
  • 63
  • 102
112
votes
17 answers

Twitter oAuth callbackUrl - localhost development

Is anyone else having a difficult time getting Twitters oAuth's callback URL to hit their localhost development environment. Apparently it has been disabled recently. http://code.google.com/p/twitter-api/issues/detail?id=534#c1 Does anyone have a…
Markus
111
votes
15 answers

Twitter API returns error 215, Bad Authentication Data

I am trying to call following Twitter's API to get a list of followers for a user. http://api.twitter.com/1.1/followers/ids.json?cursor=-1&screen_name=username And I am getting this error message in response. { code = 215; message = "Bad…
Dip Dhingani
  • 2,449
  • 2
  • 17
  • 18
92
votes
11 answers

Replies to a particular tweet, Twitter API

Is there a way in the Twitter API to get the replies to a particular tweet? Thanks
Victor
  • 20,476
  • 27
  • 76
  • 108
89
votes
6 answers

URL for a link to Twitter for a specific tweet

I have some Javascript that uses Twitter API to get tweets. I parse the data and use jQuery to generate HTML for the DOM. An aspect of what I want to display is a "View this tweet" link -- yeah, sorta sounds silly, but it allows a user to get a URL…
Zhami
  • 18,307
  • 13
  • 46
  • 46
85
votes
9 answers

Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth?

I am new to OAuth and have been playing around with the Twitter API. I am able to fetch the credentials of an user after authentication by making a request to http://api.twitter.com/1/account/verify_credentials.xml. The response contains the user…
Manoj Govindan
  • 64,355
  • 21
  • 123
  • 132
80
votes
6 answers

Open page in Twitter app from other app - Android

I was looking for some way to launch Twitter app and open a specified page from my application, without webview. I found the solution for Facebook here: Opening facebook app on specified profile page I need something similar. EDIT I just found a…
jbc25
  • 1,142
  • 2
  • 14
  • 19
74
votes
2 answers

Twitter api text field value is truncated

why text field value is truncated and how can i get complete value. As of now i am trying to get text field value like below do { if let responseObject = try NSJSONSerialization.JSONObjectWithData(response, options: []) as?…
CMS Signage
  • 2,755
  • 1
  • 26
  • 50
1
2 3
99 100