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.

25293 questions
765
votes
6 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
  • 700,868
  • 160
  • 1,392
  • 1,356
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
  • 322,767
  • 57
  • 360
  • 340
552
votes
17 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
  • 33,626
  • 31
  • 85
  • 109
304
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,441
  • 3
  • 15
  • 17
269
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
  • 3,074
  • 2
  • 23
  • 20
197
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
  • 3,221
  • 5
  • 20
  • 23
163
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,998
  • 7
  • 27
  • 32
132
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
  • 20,197
  • 16
  • 66
  • 103
116
votes
5 answers

How can I extract hours and minutes from a datetime.datetime object?

I am required to extract the time of the day from the datetime.datetime object returned by the created_at attribute, but how can I do that? This is my code for getting the datetime.datetime object. from datetime import * import tweepy consumer_key…
Abhishek Sharma
  • 1,909
  • 2
  • 15
  • 24
114
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
114
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,499
  • 2
  • 20
  • 18
98
votes
13 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
  • 23,172
  • 30
  • 86
  • 125
95
votes
9 answers

Incorrect string value: '\xF0\x9F\x8E\xB6\xF0\x9F...' MySQL

I am trying to store a tweet in my MYSQL table. The tweet is: quiero que me escuches, no te burles no te rias, anoche tuve un sueño que te fuiste de mi vida 🎶🎶 The final two characters are both 'MULTIPLE MUSICAL NOTES' (U+1F3B6), for which the…
db1
  • 2,939
  • 3
  • 15
  • 13
93
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
  • 19,033
  • 14
  • 48
  • 47
87
votes
3 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?…
Sheshnath
  • 3,293
  • 1
  • 32
  • 60
1
2 3
99 100