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.
25,381
questions
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, ...
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" : {
"...
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://...
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=&...
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 ...
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 ...
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?
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.
...
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-...
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 ...
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
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 ...
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, ...
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....
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/...
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
...
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 (...
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 ...
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",
...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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.
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("...
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 ...
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 ...
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 ...
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 ...
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 @ ...
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 ...
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 ...
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 ...
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 ...
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,...
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....
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
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 ...
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="$....
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.
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","...
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 ...
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 ...
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)
...
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. ...
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 ...
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 ...