Ket-noi fully supports the OpenSocial - Ket-noi Opensocial |
![]() |
![]() |
![]() |
Những câu hỏi thường gặp (FAQs) - Developers - cho Nhà phát triển | |
Thứ bảy, 09 Tháng 7 2011 13:33 | |
Introduction to openSocial
Ket-noi fully supports the OpenSocial 0.8 standard, as well as some Ketnooi-specific extentions to it. Creating a basic Ketnooi-integrated app with openSocial is done using the typical web technologies (HTML, JS, Flash, PHP ...), and requests can be done using JS calls or REST calls, depending on the specific situation. Embedding an external application (e.g. written in flash or PHP) is as easy to embed in your app as in any web site, using for example an iframe, or an embedded flash movie. The OpenSocial API allows your app to fetch and interact with Ketnooi's social data: the person currently using the app, profile information, friends, posting activities or notifications, etc... A central concept for all apps: viewsAn openSocial app can have different 'views', depending on where to find it (or a manifestation of it) on the site. In the Ket-noi context, only 2 are really relevant:
Both views have a fixed width (720 resp. 320 px), but can be as high as you want. The images below show what would be respectively the profile and the canvas view of the same application:
![]() ![]() Another central concept for all apps: the spec XML fileEach OpenSocial app starts from a Specification .xml file, which contains some basic info about the app, as well as the actual HTML and JS of the app itself. We call The most basic Hello World spec XML file looks like this: Now would be good moment to take your first step in developing the application: copy and paste the above code in a .xml file, upload to an online location somewhere and point to it in the Ket-noi OpenSocial Sandbox. If successful you should get both an alert box and a header saying 'Hello world!'. Some important remarks... Knowing these up front may save you a lot of headaches.
Source: Netlog |