Profile URLs, how to?

0 views
Skip to first unread message

Suhail Doshi

unread,
Nov 3, 2007, 1:44:43 PM11/3/07
to OpenSocial Developers
I noticed via the gadget tutorial that you use a hardcoded: profile =
'http://sandbox.orkut.com' + profile;

This is obviously not going to create a gadget cross compatible across
all networks, what are we supposed to use instead for compatibility?

Arne Roomann-Kurrik (Google)

unread,
Nov 3, 2007, 1:49:08 PM11/3/07
to OpenSocial Developers
Hi Suhail,

That's a good catch. Can you supply the url of the tutorial that
makes this error so that we can fix it?

Currently, the sandbox url is passed as the "parent" querystring
parameter to the application iframe url. Writing

var profile = _args()["parent"] +
person.getField(opensocial.Person.Field.PROFILE_URL);

should be more portable.

~Arne

Suhail Doshi

unread,
Nov 3, 2007, 1:50:33 PM11/3/07
to OpenSocial Developers
Sure: http://code.google.com/apis/opensocial/articles/firstgadget.html

There maybe be more floating around the site Kurrik.

On Nov 3, 10:49 am, "Arne Roomann-Kurrik (Google)"

Reply all
Reply to author
Forward
0 new messages