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.

Filter by
Sorted by
Tagged with
765 votes
6 answers
119k views

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, ...
BoltClock's user avatar
  • 707k
597 votes
15 answers
98k views

Twitter image encoding challenge [closed]

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 ...
556 votes
17 answers
1.0m views

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" : { "...
Tom's user avatar
  • 33.9k
304 votes
14 answers
319k views

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, "http://...
fellowworldcitizen's user avatar
273 votes
12 answers
279k views

{"<user xmlns=''> 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: <?xml version="1.0" encoding=&...
lloydsparkes's user avatar
  • 3,114
200 votes
8 answers
220k views

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 ...
Zelbinian's user avatar
  • 3,261
165 votes
13 answers
332k views

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 ...
haydenmuhl's user avatar
  • 6,016
132 votes
9 answers
188k views

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's user avatar
122 votes
5 answers
431k views

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. ...
Abhishek Sharma's user avatar
114 votes
17 answers
96k views

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-...
user avatar
114 votes
15 answers
121k views

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 ...
Dip Dhingani's user avatar
  • 2,499
98 votes
13 answers
69k views

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's user avatar
  • 23.4k
95 votes
9 answers
181k views

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 ...
db1's user avatar
  • 2,969
93 votes
6 answers
71k views

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, ...
Zhami's user avatar
  • 19.1k
87 votes
3 answers
41k views

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....
Sheshnath's user avatar
  • 3,323
85 votes
9 answers
45k views

Is there a way to get a 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 a user after authentication by making a request to http://api.twitter.com/1/account/...
Manoj Govindan's user avatar
82 votes
7 answers
40k views

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 ...
jbc25's user avatar
  • 1,192
76 votes
6 answers
269k views

python: [Errno 10054] An existing connection was forcibly closed by the remote host

I am writing python to crawl Twitter space using Twitter-py. I have set the crawler to sleep for a while (2 seconds) between each request to api.twitter.com. However, after some times of running (...
Nama Keru's user avatar
  • 931
74 votes
10 answers
82k views

Social Share Links with Custom Icons [closed]

I'm looking for any solid current information on creating custom share icons for the following. Facebook Twitter Google + LinkedIn Pinterest All the documentation I keep getting to seems to be about ...
bigmadwolf's user avatar
  • 3,449
71 votes
4 answers
213k views

How to access elements of a JArray (or iterate over them)

I have the following Json gotten from Twitter + token {[ { "trends": [ { "name": "Croke Park II", "url": "http://twitter.com/search?q=%22Croke+Park+II%22", ...
Stephen Hynes's user avatar
69 votes
8 answers
15k views

Owin Twitter login - the remote certificate is invalid according to the validation procedure

I started getting this error recently when trying to login using twitter- any idea why? Stack Trace: [AuthenticationException: The remote certificate is invalid according to the validation ...
user441365's user avatar
  • 3,944
66 votes
9 answers
57k views

How to force cache purge of Twitter Card's bots?

Literally I am looking for something like this: https://developers.facebook.com/tools/debug/ But for Twitter Cards. I put something wrong on my pages and I need them to be refreshed asap. But ...
AGamePlayer's user avatar
  • 7,360
66 votes
8 answers
84k views

Can I fetch the tweet from Twitter if I know the tweet's id?

Can I fetch the tweet from Twitter if I know the tweet's id?
user avatar
65 votes
5 answers
49k views

How to implement cursors for pagination in an api

This is similar to to this question which doesn't have any answers. I've read all about how to use cursors with the twitter, facebook, and disqus api's and also this article about how disqus generally ...
Micah's user avatar
  • 113k
64 votes
3 answers
46k views

How can I open a Twitter tweet using the native Twitter app on iOS?

A tweet can be opened by Safari with a link of this format: http://twitter.com/1Direction_X/statuses/197752514391715842 On iOS 5, Twitter is built-in. How can I open the above tweet using the native ...
vietstone's user avatar
  • 8,824
63 votes
9 answers
36k views

How to make calls to Twitter API using Postman client

I have followed the steps required to create a new application and getting consumer key, secret pairs and also the token access details. Now I would like to make calls to Twitter Rest API, using ...
learner's user avatar
  • 6,121
63 votes
7 answers
25k views

Best java twitter library? [closed]

The twitter API site lists 4 java twitter libraries. Twitter4j java-twitter jtwitter twittered Do you know others? What are your experiences in support, ease of use, stability, community, etc.
flybywire's user avatar
  • 265k
62 votes
9 answers
80k views

Android Intent for Twitter application

Is it possible to show a list of applications (with intent.createChooser) that only show me my twitter apps on my phone (so htc peep (htc hero) or twitdroid). I have tried it with intent.settype("...
wouter88's user avatar
  • 1,294
62 votes
14 answers
122k views

Android - Share on Facebook, Twitter, Mail, ecc

I need to develop an app that has the share function. I have to share on Facebook, twitter, email and maybe other services. How can I do this? There a library on the net? For the iOS development ...
Andrea Mario Lufino's user avatar
61 votes
3 answers
60k views

URL link to Twitter user with ID, not name

I want to have a link to my twitter page that references it with my twitter ID and not twitter name. This is because I want to build the link into an app and the twitter name for the account may ...
Matt's user avatar
  • 611
61 votes
7 answers
70k views

Sharing URL to Facebook, Twitter and email in Android?

Is there anything similar to getsharekit.com for Android? It allows to share URL's to social networking sites. Is there anything similar to this or do I need to code separately for facebook, Twitter ...
sunil's user avatar
  • 9,601
61 votes
6 answers
137k views

Twitter - share button, but with image

I want to use regular share button like on this page https://twitter.com/about/resources/buttons#tweet but to add an embedded image from my site, not just link. I know all about 1.1 api and ...
S S's user avatar
  • 987
59 votes
11 answers
58k views

Twitter-style autocomplete in textarea

I am looking for a Javascript autocomplete implementation which includes the following: Can be used in a HTML textarea Allows for typing regular text without invoking autocomplete Detects the @ ...
Martin Wiboe's user avatar
  • 2,129
58 votes
4 answers
29k views

Desktop applications only support the oauth_callback value 'oob'/oauth/request_token

I'm trying to authenticate with OAuth on NodeJS and I'm getting this error: Error getting OAuth request token : { statusCode: 401, data: '\n\n Desktop applications only support the oauth_callback ...
felipekm's user avatar
  • 2,860
58 votes
10 answers
40k views

Going from twitter date to Python datetime date

I am receiving twitter messages that are sent at a certain date in the following format from twitter: Tue Mar 29 08:11:25 +0000 2011 I want to store these dates in 'timestamp with time zone' field ...
Javaaaa's user avatar
  • 3,808
58 votes
4 answers
61k views

Get current user's info from Twitter API

I am building a Twitter app (with oAuth) and I cannot find any info on how I can get the current user's info. By current user, I mean the user which granted my app permissions and for whom the app is ...
Thomas's user avatar
  • 4,661
57 votes
6 answers
59k views

Can we get email ID from Twitter oauth API?

How to get email id of the user who accepted my Twitter application? I have gone through lot of forums. But they have mentioned, it is not possible. Also those posts are older than a year. May I know ...
Vinoth Babu's user avatar
  • 6,794
54 votes
3 answers
133k views

Twitter API - Display all tweets with a certain hashtag?

How would I go about displaying tweets that contain a certain hashtag using the Twitter API? Thanks I'd also like to know if there is a way to get all tweets from a certain hashtag in a separate file,...
Probocop's user avatar
  • 10.4k
53 votes
5 answers
48k views

Integrating FaceBook, Twitter, Social networks in Android [closed]

Integrating Multiple Social networks into Android with a single common Framework or API or JAR For iPhone we have ShareKit, which integrates multiple sharing options in one framework. http://www....
Anoop Chandrika HarisudhanNair's user avatar
53 votes
8 answers
38k views

What is the best Twitter API wrapper/library for .NET? [closed]

I'm looking for a way to programatically generate a twitter feed for a .NET application. Any recommendations as to a good wrapper for the twitter api to ease the work? Boaz
Boaz's user avatar
  • 25.5k
52 votes
7 answers
26k views

Why couldn't twitter scale by adding servers the way sites like facebook have?

I have been looking for an explanation for why twitter had to migrate part of its middle ware from Rails to Scala. What prevented them from scaling the way facebook has, by adding servers as its user ...
Jason's user avatar
  • 1,129
52 votes
5 answers
21k views

Today's XSS onmouseover exploit on twitter.com

Can you explain what exactly happened on Twitter today? Basically the exploit was causing people to post a tweet containing this link: http://t.co/@"style="font-size:999999999999px;"onmouseover="$....
ibz's user avatar
  • 45k
50 votes
11 answers
38k views

regex for Twitter username

Could you provide a regex that match Twitter usernames? Extra bonus if a Python example is provided.
Juanjo Conti's user avatar
  • 29.1k
49 votes
2 answers
93k views

Twitter API error 215

Today, we discovered one of my clients Twitter feeds became broken. I have tried switching to using the new API 1.1, but get the following error: {"errors":[{"message":"Bad Authentication data","...
Michael Giovanni Pumo's user avatar
48 votes
5 answers
135k views

How to retrieve all tweets from a user and not just the first 3,200 as Twitter limits it’s timeline and API to

With https://dev.twitter.com/docs/api/1/get/statuses/user_timeline I can get 3,200 most recent tweets. However, certain sites like http://www.mytweet16.com/ seems to bypass the limit, and my browse ...
apscience's user avatar
  • 7,063
47 votes
2 answers
51k views

Authenticate and request a user's timeline with Twitter API 1.1 oAuth

This morning I have received the dreaded 'The Twitter REST API v1 is no longer active. Please migrate to API v1.1.' error in a few of my web sites. Previously I have been using javascript/json to ...
hutchonoid's user avatar
  • 33.1k
46 votes
18 answers
35k views

Misalignment of Facebook & Twitter buttons

The page contains two buttons, from twitter and from facebook. What I'm observing in Firefox 3.5.15 is: While the page is loading, the buttons are more or less aligned (I mean their bottom sides) ...
Roman Cheplyaka's user avatar
46 votes
2 answers
20k views

Do twitter access token expire?

I am building a web app from where the user can manage his twitter account. I've created the twitter app and once the user authenticates himself the application gets the access token from twitter. ...
Florian Shena's user avatar
46 votes
2 answers
26k views

How can I do OAuth request by open new window, instead of redirect user from current page?

I have done OAuth authentication with Twitter and Facebook. Currently, with each of these site, my server redirect user to a specified URL (for example, http://api.twitter.com/oauth/authorize with ...
Hoàng Long's user avatar
  • 10.8k
46 votes
3 answers
20k views

Python Twitter library: which one? [closed]

I realize this is a bit of a lazyweb question, but I wanted to see which python library for Twitter people have had good experiences with. I've used Python Twitter Tools and like its brevity and ...
Parand's user avatar
  • 104k

1
2 3 4 5
508