[Twitter]ツイートボタンとリダイレクト

ツイートボタンのdata-urlのurlがリダイレクト処理をしていたら
ツイート数はどのurlに対してカウントアップするのだろうか
答え:リダイレクト先でした

サンプル:/test/78/
サンプルの(1)はphpで(2)へリダイレクトする。
/test/78/access/index.php

<?php
header('Location:/test/78/redirected/');
?>

サンプルの(1)でツイートすると(2)のツイート数が増える。

[Twitter]tweet with media

twitterの画像共有APIが公開されたので遊びました。

tweet with media

参考にしたサイト

POST statuses/update_with_media | Twitter Developers
https://dev.twitter.com/docs/api/1/post/statuses/update_with_media

themattharris/tmhOAuth – GitHub
https://github.com/themattharris/tmhOAuth

Index of /projects/phpThumbnailer/
http://www.hido.net/projects/phpThumbnailer/

jQuery.uploadでアップロード画像のサムネイルの作成 | Toro-Unit Blog
http://www.torounit.com/blog/2011/05/18/735/

[ajax]Twap

GoogleMapをクリックするとクリックした地点から
半径3km以内のツイートを検索して地図にプロットします。
制作時間:2時間

Twap

[twitter]指定のURLが含まれているツイートの数を調べる

また地味なネタです。
公式Tweetボタンで使われているっぽいです。

指定のURLが含まれているツイートの数を調べる。

使い方

var head=document.getElementsByTagName('head')[0];
var script=document.createElement('script');
script.src=get_jsp('http://www.yahoo.co.jp/', 'when_get_result');
head.appendChild(script);

function get_jsp(url, callback){
	var str='';
	str+='http://urls.api.twitter.com/1/urls/count.json';
	str+='?url='+encodeURIComponent(url);
	str+='&callback='+callback;
	return str;
}
function when_get_result(data){
	alert(data.url+" "+data.count);
}

気付いたこと、確認したこと。
・TwitterAPIの仕様書には載っていないようです。
・つぶやいてから反映されるまで5秒~30秒ほどかかるようです。
・つぶやきを削除してもカウント数は減らないようです。
・使い所はよくわからない。