Publish to Fan Page

May 15, 2009 at 3:15 PM

Is anyone working with Fan Pages? I'm able to publish to my profile feed useing JavaMan's examples (http://facebooktoolkit.codeplex.com/Thread/View.aspx?ThreadId=53322), but not the page feed. When I set up a fan page with no associated personal profile, my app (JavaMan's app) doesn't even render. You cannot access application settings, nor can you bookmark the app. Wierd.

May 18, 2009 at 10:02 PM

This appears to be the call...

Master.API.feed.publishTemplatizedAction("{actor} did something", null, "{actor} loves to wear {trouser_style}.", bodyDictionary, "<br/>Thanks for reading my footer",0,feedImages, null);

The app loads as expected, but when I click publish, I get a blank screen, indicating an error on the server. Nothing is published. Any ideas?

This is the full body of the code...

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using facebook.Schema;

public partial class _Default : System.Web.UI.Page
{

    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "Bingo!!!";
    
        Dictionary<string, string> bodyDictionary = new Dictionary<string, string>();
        bodyDictionary.Add("trouser_style", "parachute pants");

        // Add an image to the details
        Collection<feed_image> feedImages = new Collection<feed_image>();
        feedImages.Add(new feed_image("http://www.mysite.com/images/large.gif", "http://apps.facebook.com/nashvillevideo"));

        Master.API.feed.publishTemplatizedAction("{actor} did something", null, "{actor} loves to wear {trouser_style}.", bodyDictionary, "<br/>Thanks for reading my footer",0,feedImages, null);

    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Label1.Text = "Greetings, " + Master.API.users.getInfo().first_name + ", Your UID = " + Master.API.uid;
    }

}

May 26, 2009 at 4:02 PM

Is no one else working with Facebook Pages? I've been working on this for a while, but now luck. I can publish to my personal profile with no trouble, but no go with 'pages'.