Hi friends,

I want to post a media Item i.,e a image but when i do this the method
createActivty thows a internal server Error that is Error Status 500.
the code snippet of this is below.


//var url = "http://s3.amazonaws.com/rssfetch/
C659BFA153CFF4DEE0045FB0103F11DD.jpeg";
// var mediaItem =
opensocial.newActivityMediaItem(opensocial.Activity.MediaItem.Type.IMAGE,
url, {});

    var activity = opensocial.newActivity({});
    activity.setField(opensocial.Activity.Field.TITLE, "Some Title");
    activity.setField(opensocial.Activity.Field.BODY, "Some Body");
  //  activity.setField(opensocial.Activity.Field.MEDIA_ITEMS,
[mediaItem]);

 opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, responsMethod)

The lines that are commented are for posting the image to the activity
and if you just uncomment it throws an exception giving Http Status
Code 500


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to