-4

plz convert this to vb.nettttttttttttttttt

thanx

attachment attachment = new attachment();
attachment.caption = "facebook.com";
attachment.name = "Publish Test";
attachment.href = "http://www.facebook.com";
attachment.description = "a sample description";

attachment.properties = new attachment_property()
{
    category = new attachment_category()
    {
        href = "http://www.facebook.com/mycategory/sample",
        text = "sample category"
    },
    ratings = "5 stars"
};

attachment.media = new List<attachment_media>(){new attachment_media_image()
                        {
                            src = "http://facebook.com/myapp/logo.jpg",
                            href = "http://www.facebook.com/myapp"
                        }};

var result = api.Stream.Publish("Publishing to stream with attachment", attachment, null, null, 0);

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by pauldani
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.