twitter-api

How to add button to follow application owner's Twitter account from iphone application?

Hi, all! I'm developing an application in which I need to include an option "Share on Twitter " click upon which the application's itunes address is automatically twitted to the user's Twitter account(ofcourse I'm accepting user's id and password). I was able to do that. Now I want to add a button "Follow" click upon which will...

Creating files on a time (hourly) basis

Hi there, I experimenting with twitter streaming API, I use Phirehose to connect to twitter and fetch the data but having problems storing it in files for further processing. Basically what I want to do is to create a file named date("YmdH")."."txt" for every hour of connection. Here is how my code looks like right now (not hand...

Twitter Favorites and more than 20

Im using curl to fetch my Twitter favorites: <?php $username = "bob"; $password = "password"; $twitterHost = "http://twitter.com/favorites.xml"; $curl; $curl = curl_init(); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CU...

How to crawl retweets of a certain user?

I studied the Twitter API Documentation today. Only find that we could use "Twitter REST API Method: statuses user_timeline" to acquire statuses of a certain user. Retweets are stripped out of the user_timeline for backwards compatibility reasons. If I want retweets included, API Documentation recommend "statuses retweeted_by_me", but re...

Realtime Twitter Replies?

I have created Twitter bots for many geographic locations. I want to allow users to @-reply to the Twitter bot with commands and then have the bot respond with the results. I would like to have the bot reply to the user as quickly as possible (realtime). Apparently, Twitter used to have an XMPP/Jabber interface that would provide this t...

twitter API problem

I am using this to get my latest Tweets <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js" ></script> <script type="text/javascript"src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&amp;amp;count=2"&gt;&lt;/script&gt; so i have to get the latest 2 tweets cause i set t...

Problem with printing output using PHP library

I am using the PHP library tools on a we hosting service( with cURL enabled). I have so far tried 2 tools but I cant get the output of my code to print to the screen. http://github.com/jdp/twitterlibphp - PHP library Sample code - <?php require("twitter.lib.php"); $twitter = new Twitter("xxxx", "xxxxx"); $public_timeline = $twitter-...

FaceBook fan count on website

I'd like to include a within the footer of my website a "facebook fan count". I believe this will add an incentive to users considering clicking our facebook icon. "join XXXX fans on our facebook page" for example. I want the XXXX to be automatically populated with our facebook fan count. I want to do the same with twitter. Any insight y...

rubygem Twitter4R Issues

Hi everyone, I'm trying to get started with twitter4r but I'm having some issues: Why I can't load the gem in IRB? $ sudo gem install twitter4r Successfully installed twitter4r-0.3.2 1 gem installed Installing ri documentation for twitter4r-0.3.2... Installing RDoc documentation for twitter4r-0.3.2... $ irb >> require 'rubygems' => f...

How to do a RETWEET on an iPhone twitter app (MGTwitterEngine)

How to do a RETWEET on an iPhone twitter app (MGTwitterEngine) ...

Use the Twitter API to run a script every time I post a new tweet

I have a PHP script on my server that I want to run every time I post a new tweet to Twitter. Is there a way to automate this? I could of course set up a cron job to run the script every five minutes, or run the script manually every time after tweeting, but neither of those is instant — and that’s exactly what I’m looking for. Is it p...

PHP Curl and Loop based on a numeric value

Im using the Twitter API to collect the number of tweets I've favorited, well to be accurate the total pages of favorited tweets. I use this URL: http://api.twitter.com/1/users/show/username.xml I grab the XML element 'favorites_count' For this example lets assume favorites_count=5 The Twitter API uses this URL to get the favorties:...

Is there a Twitter App Builder?

I have a small fun Twitter app idea and I was wondering if there are Twitter app builders such as the ones you can find for iPhone? If there aren't any. Are there good resources of learning how to put a Twitter app together? ...

Creating Custom Twitter Application.

Hi guys, I am trying to create a custom twitter application.But, I am not getting how to create. Any one help me to solve this. Thanks in advance. ...

PHP - Checking Twitter username and password

Hey, I've been playing around with the Twitter api and I would need one more thing, that no tutorial covers .. Here si the code that I use to pick up data: $curlhandle = curl_init(); curl_setopt($curlhandle, CURLOPT_URL, "http://twitter.com/statuses/user_timeline.xml"); curl_setopt($curlhandle, CURLOPT_USERPWD, $username.':'.$pass...

shell_exec escaping quotes in php for Twitter API --> Getting CURL to work with obscure twitter api method

I'm using shell_exec() to execute a Twitter API Call. shell_exec('curl -u user:password -d "id=3191321" http://api.twitter.com/1/twitterapi/twitterlist/members.xml'); That works fine when I authenticate correctly and put in a number for the id. But when I try to put in a variable ($id), it screws up. $addtolist = shell_exec('curl ...

Add a new member to a Twitter List

I'm trying to add a user (by variable $id) to a Twitter List using PHP CURL, and I can't get it to work. $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "http://twitter.com/username/list/members.xml"); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "id=$id")...

Calculate the number of Tweets in PHP

I want to calculate the number of Tweets of a Twitter Search, and a countup. Just like GigaTweet. How can I calculate this using PHP and the Twitter API? ...

php how do I grab the date of oldest item in rss feed

using simplexml to parse a feed, but I want to grab the date of the oldest item in the feed. Does anyone know how to do it? Thanks $rss = simplexml_load_file("http://search.twitter.com/search.atom?lang=en&amp;q=foobar&amp;rpp=100&amp;page=1"); ...

OAuth gives me 401 error

I am trying to get the access key but I cannot make it work. `request_token.get_access_token is giving me 401 Unauthorized (OAuth::Unauthorized) error. I copy the authorize_url into my browser, allow the application, I receive some kind of PIN from twitter but after hitting enter in my script I always get 401 error. I did some search and...