Step 0. Automatically get authorization by oauth2.0
First, following this webpage to set your app, especially to get the app key, app secret, and set the callback url. http://blog.laisky.us/2012/01/278/
or this one http://my.csdn.net/michael_gmr/code/detail/13607 (doesn’t work any more)
Second, following this link, you can automatically get the code from the callback url. http://www.how2dns.com/blog/?p=538
Step 1. Assume that you have had a list of mids, you want to get the number of repsots. Thus, you can have the distribution of the size of diffusion.
Step 2. If you want to step further and get the list of diffusers for a list of weibos. Thus, you will know how many reposts or retweets have been deleted by the website.
Step 3. Now, you may want to get the social graph for all the diffusers.