Showing posts with label myspace. Show all posts
Showing posts with label myspace. Show all posts

March 5, 2009

Dimension of app on myspace, orkut, and facebook


Each platform has different size limit for apps that appearing on their canvas and profile.  I hope this can be a collaborative effort, please feel free to chime in.  


Myspace
canvas: 960 x (no limit?)
narrow profile: 300 x ?
wide profile: 430 x ?

Reference: What is an Myspace app

orkut
canvas: 765x600
profile: 470x280

Reference: Anatomy of an orkut app


facebook
canvas: 760 x (no limit?)
main profile: ?
narrow profile: ?
wide profile: ?
application tab: ?

Reference:
You can see this in developer application.  When you create an application, it will ask you whether your canvas should be new size (760 px) or old size (68x px).

February 11, 2009

Difference between MySpace and Orkut – part2

Person object returned by JavaScript API have different types for properties.

Orkut
The Person object's NAME property contains an opensocial.Name object. GENDER property contains an opensocial.Enum object.

MySpace
The Person object returned by MySpace JavaScript API have string for NAME and GENDER.

Difference between MySpace and Orkut – part 1

Difference between MySpace and Orkut – part 1

We implement the MySpace newFetchPersonRequest() first. Then we try to implement newFetchPersonRequest() for Orkut. Then we found out that there are a few thing that MySpace sample code is different from the Orkut code.

The following are Javascript code. On Actionscript side, we abstract the difference, so the Actionscript API is the same across the two containers.

var dataRequest = opensocial.newDataRequest();
var OWNERReq = dataRequest.newFetchPersonRequest(oParam.view, param);
dataRequest.add(OWNERReq, 'viewer');


on MySpace code, it has

var os = opensocial.Container.get(); // different from standard
var dataRequest = os.newDataRequest();
var OWNERReq = os.newFetchPersonRequest(oParam.view, param);
dataRequest.add(OWNERReq); // different from standard, does not require the extra name.