先去 了解一下oauth2, 原理。 然后就去开发者文档里找接口, 所有的oauth2 都是差不多的。
http://my.oschina.net/duoduo3369/blog/300858
这个可以i 不过 我觉得不好用,有时间自己写一个。。