PublishStory and PublishAction keep failing

Jul 8, 2007 at 5:26 PM

I wasn't able to run any of these methods successfully. I didn't publish any images, just title and body.
I got a response with return code "0", which didn't raise any exception, but according to the documentation it means a permission problem. The new entries didn't appear in Facebook either.

This is the response I got when using PublishStory:

<?xml version="1.0" encoding="UTF-8"?>
<feedpublishStoryToUserresponse xmlns="" xmlns:xsi="" xsi:schemaLocation="" list="true">

Any ideas?
I'm using build 7683.

Jul 9, 2007 at 10:09 PM
Hmmm. I just tried the Publish interfaces and they seem okay. Can you post the method that you are using to publish? Perhaps you have something invalid. Or the user you are trying to publish to has not granted you permission.
Jul 10, 2007 at 4:17 PM
Here is my code snippet. The GetFriends method works fine, so I guess there is no problem with the authentication code. The PublishStory method still returns "0":

protected void Page_Load(object sender, EventArgs e)
string auth_token = "*********";
if (auth_token != null)

Facebook.Components.FacebookService FBService = new Facebook.Components.FacebookService();
FBService.ApplicationKey = "****************";
FBService.Secret = ""****************";
FBService.IsDesktopApplication = false;

string result = FBService.PublishStory("Test story", "Test story", null);
Response.Write("PublishStory result is " + result);

Collection<Facebook.Entity.User> colUsers = FBService.GetFriends();
foreach (Facebook.Entity.User user in colUsers)
Response.Write(user.FirstName + " " + user.LastName);

I tried to publish to my own user which also owns the application.
Jul 10, 2007 at 11:02 PM
When you added the application, did you leave the allow this application to publish stories to my mini-feed checkbox checked?

Can you remove the app and re-add to make sure. That is the only thing I can think of.

Is this a canvas application?
Jul 11, 2007 at 6:24 PM
Yeah, that was it.

I didn't realise that I had to manually add the application to my applications list in order to recieve a Mini-Feed, but don't have to add it if I just want to query info.