I want to include Media Items (Images) in an Activity entry... I have not been able to get any images to appear. This is the code that I've tried:
=====================================CODE var params = {}; params[opensocial.Activity.Field.TITLE] = text; //params[opensocial.Activity.Field.BODY] = body; //to show image var mediaItems = new Array(); var mediaItem = opensocial.newActivityMediaItem (opensocial.Activity.MediaItem.Type.IMAGE, "http://mywebsite/images/image.gif"); mediaItems.push(mediaItem); params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItems; var activity = opensocial.newActivity(params); opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH, callback); } =====================================END CODE The above code successfully creates new activity with proper text, but only the problem with this code is it does not display image. Any help is appreciated! Thanks in advance Amit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---