This is an enhancement request for the opensocial php client to support
the Facebook PHP client. Obviously Facebook doesn't support the opensocial
specifications, but there are corresponding REST API's that could be
mapped to standard opensocial calls and responses. The idea would be that
we could use these opensocial API's to access all the major social
networking sites with a single code-base.
Here are examples of what could be mapped:
OpenSocial -> Facebook
People, Retrieve -> users.getInfo, friends.get
Activities, Retrieve -> stream.get (beta)
Activities, Create -> stream.publish (beta)
AppData, Retrieve -> data.getUserPreference(s) are most applicable but
Facebook also provides mass database storage as well
AppData, Create -> data.setUserPreference(s)
AppData, Delete -> data.setUserPreference(s) with null values
Messages, Retrieve -> no way to get user's emails on Facebook, but could
get their app notifications using notifications.get
Messages, Create -> notifications.sendEmail (and notifications.send
In addition, a new Auth method would be needed for Facebook. Facebook
provides a number of auth API's for this as well, such as
auth.createToken, auth.getSession, etc.
Certainly this would require also mapping the specific result data
structures and field names to the corresponding structures and field names
in the opensocial spec, but it should be possible to get pretty close.
Original issue reported on code.google.com by timrnich...@gmail.com on 16 Jun 2009 at 3:35
Original issue reported on code.google.com by
timrnich...@gmail.com
on 16 Jun 2009 at 3:35