Solved: Problem in Publish News Feed

Aug 10, 2009 at 2:49 PM

Hi guys,

I can't seems to find any solution for it....

Below is my code:

protected void Page_Load(object sender, EventArgs e)
        long template_id = 116542658563;
        var templateData = new Dictionary();
        List target_id = new List();

        API.feed.publishUserAction(template_id, templateData, target_id, "Test story from appllication", feed.PublishedStorySize.OneLine);
I already have permission to publish stream. I keep getting error 500. It will be good if  someone can show me a snippet of code that works. So far, I can't see any example that works.
Aug 10, 2009 at 9:58 PM

Here is a snippet of what i have:

templateData As New Dictionary(Of String, String) Dim imgDict As New List(Of String) Dim path As New Dictionary(Of String, String)
path.Add("src", "somesrc.jpg")
path.Add("href", strURL)

templateData.Add("images", facebook.Utility.JSONHelper.ConvertToJSONArray(imgDict))
templateData.Add("event", strURL)

MyBase.API.feed.publishUserAction(strBundleID, templateData, New List(Of Long), Nothing, feed.PublishedStorySize.Short)