---
title: "Google OpenSocial中文开发"
author: "berrywu"
date: "2010-03-24T12:12:36Z"
tags: ["Google", "MySpace", "PHP", "Python", "网络应用"]
categories: ["互联网"]
slug: "google-opensocial"
draft: false
lastmod: "2010-03-24T12:12:36Z"
id: 623467
url: "https://berrywu.iteye.com/blog/623467"
---

[OpenSocial](http://code.google.com/intl/zh-CN/apis/opensocial/)为构建跨多个网站的社交应用程序提供了一组通用 API。开发人员可以自由使用包括 JavaScript、HTML 在内的更多语言创建应用程序，用以访问社交网络的朋友并更新供稿。OpenSocial 是在小工具技术的基础上构建的，因此开发者可以花费较少的服务成本（甚至无需成本）来创建一个出色的、虚拟的社交应用程序。目前，OpenSocial 由 Google 与网络社区的成员联合开发，许多网站都在应用 OpenSocial，其中包括 Engage.com、Friendster、hi5、Hyves、imeem、LinkedIn、MySpace（聚友）、Ning、Oracle、orkut、Plaxo、Salesforce.com、Six Apart、天极网、天涯社区、Viadeo 和 XING。

　　以下是OpenSocial的相关中文资源列表，资料来源于[Google中国的开发者网站](http://www.williamlong.info/archives/1502.html)：

　　**1、OpenSocial中国应用**

　　[平台介绍(PPT)](http://opensocial-china.googlegroups.com/web/%E5%B9%B3%E5%8F%B0%E4%BB%8B%E7%BB%8D.ppt?hl=zh-CN&gda=gI0iy1oAAADCgTcnXsZHNCdpwEOtM5f-GEYLqfHUpuj_s5-jJQgewCHP_5kVyZ6J_02drWiE3UZIGP9lmUumuHqGObkZyKIwgWnu6XlmHe81DUvKkRJXYv3t1oNBp6n3SjsA6lIodbQ&gsc=LbpHFSEAAAB0V8FirzqlSStgnmz_jbU0SAk3Bs3O2HLxVx9jpCWqAUzfKN-m9S9niuHrq-IEXAE)

　　[opensocial简介(PPT)](http://%20http://opensocial-china.googlegroups.com/web/OS%E7%AE%80%E4%BB%8B.ppt?hl=zh-CN&gda=N5forkoAAADCgTcnXsZHNCdpwEOtM5f-4N9iQmGCsZ3lj8bewMZzLhvuekAnKXR2AmAmLdwwFUNj2zHu4_ZL8i0Qj0AY39mX_e3Wg0GnqfdKOwDqUih1tA&gsc=LbpHFSEAAAB0V8FirzqlSStgnmz_jbU0SAk3Bs3O2HLxVx9jpCWqAUzfKN-m9S9niuHrq-IEXAE)

　　[opensocial api简介(PPT)](http://groups.google.com/group/opensocial-china/web/OS%20API%E7%AE%80%E4%BB%8B.ppt)

　　[InfoQ OpenSocial专题](http://www.infoq.com/cn/OpenSocial)

　　**2、OpenSocial官方网站** [http://www.opensocial.org](http://www.opensocial.org)

　　**3、JavaScript API最新开发文档（v0.8.1）**

　　开发人员指南：[http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/devguide.html](http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/devguide.html)

　　Release Notes: [http://code.google.com/intl/zh-CN/apis/opensocial/docs/releasenotes.html](http://code.google.com/intl/zh-CN/apis/opensocial/docs/releasenotes.html)

　　API 规范: [http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/spec.html](http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/spec.html)

　　API 参考（opensocial.\*）: [http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/reference/](http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/reference/)

　　API 参考（gadgets.\*）: [http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/reference/gadgets/](http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/reference/gadgets/)

　　Gadget XML定义: [http://code.google.com/intl/zh-CN/apis/gadgets/docs/reference.html](http://code.google.com/intl/zh-CN/apis/gadgets/docs/reference.html)

　　**4、RESTful的SDK**

　　PHP: [http://code.google.com/p/opensocial-php-client/](http://code.google.com/p/opensocial-php-client/)

　　Java: [http://code.google.com/p/opensocial-java-client/](http://code.google.com/p/opensocial-java-client/)

　　Ruby: [http://code.google.com/p/opensocial-ruby-client/](http://code.google.com/p/opensocial-ruby-client/)

　　Python: [http://code.google.com/p/opensocial-python-client/](http://code.google.com/p/opensocial-python-client/)

　　RSA\_SHA1 lib for GAE: http://opensocial-china.googlegroups.com/web/RSA\_SHA1.zip

　　**5、讲座PPT,视频**

　　2008-6-13 Hackathon

　　OpenSocial概览 (简介): [http://docs.google.com/Presentation?id=dgqxv878\_199ccfbd9cc](http://docs.google.com/Presentation?id=dgqxv878_199ccfbd9cc)

　　RESTful API (OAuth & Signed Fetch): [http://docs.google.com/Presentation?id=dgqxv878\_294f5k73bg7](http://docs.google.com/Presentation?id=dgqxv878_294f5k73bg7)

　　OpenSocial小工具 - JavaScript API: [http://docs.google.com/Presentation?id=dgqxv878\_275d8xfk3gz](http://docs.google.com/Presentation?id=dgqxv878_275d8xfk3gz)

　　Life of a Gadget: [http://docs.google.com/Presentation?id=dgqxv878\_113hhsfg9zp](http://docs.google.com/Presentation?id=dgqxv878_113hhsfg9zp)

　　OpenSocial Flash API: [http://opensocial-resources-zh.googlecode.com/svn/trunk/opensocial-flashapi/index.html](http://opensocial-resources-zh.googlecode.com/svn/trunk/opensocial-flashapi/index.html)

　　OpenSocial小工具实验室: [http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tutorial/Tutorial.html](http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tutorial/Tutorial.html)

　　Shindig概览: [http://docs.google.com/Presentation?id=dgqxv878\_319dd28w4hr](http://docs.google.com/Presentation?id=dgqxv878_319dd28w4hr)

　　受限系统的容器托管服务（草案）: [http://docs.google.com/Presentation?id=dgqxv878\_367d2p98md2](http://docs.google.com/Presentation?id=dgqxv878_367d2p98md2)

　　OpenSocial模板系统: [http://docs.google.com/Presentation?id=dgqxv878\_342gn5ww4fj](http://docs.google.com/Presentation?id=dgqxv878_342gn5ww4fj)

　　Closing discussion: [http://docs.google.com/Presentation?id=dgqxv878\_34cm27dzgc](http://docs.google.com/Presentation?id=dgqxv878_34cm27dzgc)

　　资源链接页面: [http://docs.google.com/Doc?id=dgqxv878\_366g253xmdk](http://docs.google.com/Doc?id=dgqxv878_366g253xmdk)

　　2008-12-16 Hackathon获奖应用链接

　　北京站：

　　第1名--好友连连看: [http://home.myspace.cn/Modules/Apps/Pages/AppDesc.aspx?id=101512](http://home.myspace.cn/Modules/Apps/Pages/AppDesc.aspx?id=101512)

　　第2名--一起来抢亲: [http://home.myspace.cn/Modules/Apps/Pages/AppDesc.aspx?id=101407](http://home.myspace.cn/Modules/Apps/Pages/AppDesc.aspx?id=101407)

　　第3名--程序达人: [http://apps.xiaonei.com/openjudge](http://apps.xiaonei.com/openjudge)

　　上海站：

　　第1名--Flickr Show: [http://apps.myspace.cn/app/101881](http://apps.myspace.cn/app/101881)

　　第2名--Let's Go: [http://apps.xiaonei.com/letsgohike](http://apps.xiaonei.com/letsgohike)

　　**6、开源项目地址**  [http://code.google.com/p/easy-opensocial-apps/](http://code.google.com/p/easy-opensocial-apps/)

　　示例教程：[http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tutorial/Tutorial.html](http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tutorial/Tutorial.html)

　　新春礼物、朋友打靶、谁更富

　　演示链接：[http://apps.xiaonei.com/shawngift](http://apps.xiaonei.com/shawngift)

　　[http://apps.xiaonei.com/xnfight](http://apps.xiaonei.com/xnfight)

　　[http://apps.xiaonei.com/whoisrich](http://apps.xiaonei.com/whoisrich)

　　源代码下载：[http://code.google.com/p/opensocial-sample-apps/downloads/list](http://code.google.com/p/opensocial-sample-apps/downloads/list)

　　朋友买卖开源应用实例:

　　各个SNS平台上都有的小游戏,可以买卖你的朋友,折腾/安抚你的朋友,这是一个使用了Opensocial API的版本,在客户端Opensocial API之上使用了一个自己开发的小框架,服务器端有java,php和python(appengine)的版本,可以按自己情况下载.

　　源代码(java): http://easy-opensocial-apps.googlecode.com/files/friendforsale-java-1.0.zip

　　php服务器端: http://easy-opensocial-apps.googlecode.com/files/friendforsale-php-server-0.1.zip

　　python(appengine)服务器端: http://easy-opensocial-apps.googlecode.com/files/friendforsale-appengine-server-0.1.zip

　　相关文档:

　　[http://code.google.com/p/easy-opensocial-apps/wiki/friendforsale\_sample\_manual](http://code.google.com/p/easy-opensocial-apps/wiki/friendforsale_sample_manual)

　　[http://easy-opensocial-apps.googlecode.com/files/opensource-friendsale.ppt](http://easy-opensocial-apps.googlecode.com/files/opensource-friendsale.ppt)

　　演示链接：

　　[http://apps.xiaonei.com/os\_friendsale](http://apps.xiaonei.com/os_friendsale)

　　[http://apps.51.com/friendos/](http://apps.51.com/friendos/)

　　[http://www.yiqi.com/opensocial/applications/preview/212282](http://www.yiqi.com/opensocial/applications/preview/212282)

　　[http://sandbox.orkut.com/Main#AppInfo.aspx?appId=247050139713](http://sandbox.orkut.com/Main#AppInfo.aspx?appId=247050139713)

　　[http://apps.myspace.cn/app/101854](http://apps.myspace.cn/app/101854)

　　爱恨知多少(loveorhate):

　　用opensocial restful library php版实现的一个小应用。在这个应用中用到的opensocial功能有：取得个人的信息，取得个人朋友的信息。 小应用的介绍：对朋友的喜爱和憎恶，都表现在这个游戏中，其实这都是现实的，所以要努力让更多的朋友看到自己好的地方喜欢自己。这样才有一个努力进步的自我。

　　源代码: http://easy-opensocial-apps.googlecode.com/files/loveorhate-test.zip

　　相关文档: http://code.google.com/p/easy-opensocial-apps/wiki/loveorhate\_readme

　　测试(gtest):

　　用Opensocial API编写的做测试的小应用,你可以用你自己有个性的题目,快速地生成一个用来做测试的小应用,你也可以以这个项目为基础来进行修改,增加你自己特有的功能.

　　源代码: http://easy-opensocial-apps.googlecode.com/files/gtest-appengine-1.0.zip

　　相关文档:

　　[http://code.google.com/p/easy-opensocial-apps/wiki/gtest\_readme](http://code.google.com/p/easy-opensocial-apps/wiki/gtest_readme)

　　[https://docs.google.com/Doc?id=ddfpfh7f\_10g58bc5cq&hl=zh\_CN](https://docs.google.com/Doc?id=ddfpfh7f_10g58bc5cq&hl=zh_CN)

　　easy-opensocial-apps-framework-1.0:

　　[http://easy-opensocial-apps.googlecode.com/files/easy-opensocial-apps-framework-1.0.zi](http://easy-opensocial-apps.googlecode.com/files/easy-opensocial-apps-framework-1.0.zi)

　　Flash应用开发教程: [http://gameandvision.com/opensocial\_sns\_tutorial](http://gameandvision.com/opensocial_sns_tutorial)

　　**7、其它相关资源**

　　Shindig: [http://incubator.apache.org/shindig/](http://incubator.apache.org/shindig/)

　　Shindig Wiki: [http://cwiki.apache.org/confluence/display/SHINDIG/Index](http://cwiki.apache.org/confluence/display/SHINDIG/Index)

　　Shindig架构: 英文PDF [http://groups.google.com/group/opensocial-china/web/ShindigArchitecture\_Dec19\_2008.pdf](http://groups.google.com/group/opensocial-china/web/ShindigArchitecture_Dec19_2008.pdf)

　　项目托管: [http://code.google.com/p/support/wiki/GettingStarted](http://code.google.com/p/support/wiki/GettingStarted)

　　App Engine: [http://code.google.com/intl/zh-CN/appengine/](http://code.google.com/intl/zh-CN/appengine/)

　　Google Analytics: [http://code.google.com/intl/zh-CN/apis/analytics/](http://code.google.com/intl/zh-CN/apis/analytics/)

　　**8、平台的opensocial技术论坛**

　　51.com: [http://developers.51.com/wiki/index.php?title=OpenSocial](http://developers.51.com/wiki/index.php?title=OpenSocial)

　　yiqi.com: [http://www.yiqi.com/developer/doc.php](http://www.yiqi.com/developer/doc.php)

　　myspace.com: [http://developer.myspace.cn/community/](http://developer.myspace.cn/community/)

　　tianya.cn: [http://cache.tianya.cn/index.htm?vitem=http%3A%2F%2Fsandbox.tianya.cn%2Fsandbox%2Fsandbox.jsp](http://cache.tianya.cn/index.htm?vitem=http%3A%2F%2Fsandbox.tianya.cn%2Fsandbox%2Fsandbox.jsp)

　　xiaonei.com: [http://dev.xiaonei.com/wiki/Gadget](http://dev.xiaonei.com/wiki/Gadget)