images in post activity

8 views
Skip to first unread message

ashcsi ashcsi

unread,
Jun 7, 2011, 4:42:32 AM6/7/11
to opensoci...@googlegroups.com
Hello All,

How do we use images in the newActivity method. I am using the following code:

    var activity_body = '<table cellspacing="1" cellpadding="1"><tbody><tr><td><img src="XXXXXXXXX"></td></tr></tbody></table>';
    params[opensocial.Activity.Field.BODY] = activity_body;
    var activity = opensocial.newActivity(params)
    opensocial.requestCreateActivity(activity, opensocial.requestCreateActivity(activity, "HIGH", cb));

But the images are not getting displayed. Do we need to include something more?

thanks
    ashcsi1322

Bruno Oliveira ("btco")

unread,
Jun 9, 2011, 9:56:01 PM6/9/11
to opensoci...@googlegroups.com
Hello, no nothing special should be needed. Have you tried posting only the <img> without the <table>?
Reply all
Reply to author
Forward
0 new messages