I'm using orkut. For a moment i thought that i was posting to the
"orkut developer forum" group =P.

Thanks a lot for the answer.

On 1 maio, 17:37, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]> wrote:
> Can you let me know which container you are working on?  I know that
> MediaItem is currently unsupported on orkut, but that you can place an
> <img> tag in the body of an activity stream entry.
>
> ~Arne
>
>
>
> On Tue, Apr 29, 2008 at 9:54 PM, carneiro <[EMAIL PROTECTED]> wrote:
>
> >  Hello, I would like to know what i'm doing wrong. I have a
> >  postActivity function and trying to insert an image using the "media
> >  item" object. If I understood right, this will insert a image
> >  automatically in the updates strip following the container default lay
> >  out, right? Or I have to insert a html code calling that image at the
> >  body field?
>
> >  I'm using the following code:
>
> >  function postActivity(title, text) {
>
> >         var miParams = {};
> >                 miParams[opensocial.Activity.MediaItem.Field.TYPE] =
> >  opensocial.Activity.MediaItem.Type.IMAGE;
> >         var mi = opensocial.newActivityMediaItem("image/jpeg","http://
> >  img2.orkut.com/images/medium/1208309366/655952.jpg",miParams);
> >         var params = {};
> >                 params[opensocial.Activity.Field.TITLE] = title;
> >                 params[opensocial.Activity.Field.BODY] = text;
> >                 params[opensocial.Activity.Field.MEDIA_ITEMS] = [mi];
>
> >         var activity = opensocial.newActivity(params);
> >         opensocial.requestCreateActivity(activity,
> >  opensocial.CreateActivityPriority.HIGH, callback);
> >  };
> >  function callback(status) {
> >         trace('callback');
> >  };
> >  postActivity("título da atividade", "texto da atividade");
>
> >  My biggest doubt is if i'm applying "mime type" parameter correctly.
> >  Can anybody help?
>
> >  Thanks a lot
>
> --
> OpenSocial IRC - irc://irc.freenode.net/opensocial
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to