gaurav bhatia's Library tagged → View Popular
Statistics on Google’s OpenSocial platform end users and Facebook users
social networking data/stats
-
The greatest overlap between OpenSocial container sites exists between MySpace and Hi5, in which 43% of Hi5 users also use MySpace.
-
Facebook users are 63% female and 36% male whereas the sites integrated with the OpenSocial platform are 61% female and 38% male
- 2 more annotations...
The Persistence API - OpenSocial - Google Code
persistence api
-
Which users a user can write Persistence data to is a policy decision that
is made by each OpenSocial container. Currently, the "default" policy that
most active containers have implemented is that an application can only write to
VIEWER data, and only if the VIEWER has the application installed.
This policy is fairly restrictive to prevent
malicious users from writing data to arbitrary users, so it
is expected to be the most commonly implemented Persistence data policy.
This article was written under the assumption that data will only be
writeable to VIEWERs with the application installed, and presents
advice on how to structure applications around this limitation.
It is certainly possible that some containers may implement
a more relaxed data policy that allows users to write data to other users'
Persistence data. Additionally, some containers may choose to give their
users the ability to set ACLs on their Persistence data. In this model,
a user would be able to whitelist other user accounts to read from or write
to their own Persistence data. -
Character escaping
Since application data is visible to more than just the user who writes it,
there is a danger that any given application data may contain content from
a malicious user. For this reason, the OpenSocial specification stipulates
that application data must be HTML escaped by the container before being
returned to the application.This will prevent situations where application data output without being
filtered by the application first. Consider the following data string:"<img style=\"width: 1; height: 1;\" src=\"adsfa\" onerror=\"alert('hello')\" />"If the above string is put directly into the
innerHTML
property of a page element, a popup box containing hello will be
displayed. While this sample is harmless, allowing JavaScript from other
users to execute without being filtered is a security risk. Therefore, if
that string is stored in application data, it will be returned as:"<img style="width: 1; height: 1;" src="adsfa" onerror="alert('hello')" />"
which, if put into the
innerHTMLproperty of an element, will
simply print the <img> tag and the alert() code, instead of
executing the JavaScript directly.If you need to undo this encoding operation for some reason, you may use
thegadgets.util.unescapeStringfunction to return the escaped
string's original form. Be careful about displaying unescaped data, though,
for the reason explained above. - 4 more annotations...
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in opensocial
-
OpenSocial
Items: 3 | Visits: 52
Created by: Toshiro Shimura
-
Semantic Web & Social Graph [3.0]
Links + Sources about web 3...
Items: 61 | Visits: 27
Created by: Youssef El Ayadi
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
