service.Feed.PublishMiniFeedStory(story) problems

Apr 26, 2008 at 8:46 PM
So i've determined that service.Feed.PublishMiniFeedStory(story) returns false if you pass it anything other than a story with just a title

FeedStoryTemplate StoryTemplate = new FeedStoryTemplate("some info for title", "some info for body");

FeedStory Story = new FeedStory(StoryTemplate, fba.Service.UserID, fba.Service.Friends.GetFriends(FriendFilter.AllFriends));
//service.Feed.PublishMiniFeedStory(story) == false
//doesn't work! does not get published to minifeed

FeedStory Story = new FeedStory(StoryTemplate,fba.Service.UserID);
//service.Feed.PublishMiniFeedStory(story) == false
//doesn't work! does not get published to minifeed

FeedStory Story = new FeedStory("Title");
// service.Feed.PublishMiniFeed(story)==true
//Works! Gets published to friend feed

Also , using the other overload for PublishMiniFeed(title,body,images) works, but this does not allow publishing to friends minifeed.

I am using 0.3.0.0 DLL

Any ideas? Thanks in advance!



Apr 28, 2008 at 6:04 PM
After the false return, did you do a service.Session.GetLastResponse call and see what error, if any, were returned?
Apr 29, 2008 at 2:50 AM
No.

But i just did and it returned telling me that i hadn't sent in the tokens for {actor}, which i did. And it works! Thanks Bill (again) ! Ahh the joy! On to the next prollem!
Apr 29, 2008 at 4:45 PM
No problem. GetLastResponse is a godsend for these type of things. Also, the Facebook tools http://developers.facebook.com/tools.php?feed

Bill
Sep 4, 2008 at 12:37 PM
Hi All,

I go same return value as false.
After I did service.Session.GetLastResponse call.
I got error message as "Feed story title template either missing required parameters, or did not have all parameters defined in title_data array".

I really cannot make out what I am missing.....

--codesnippet--
                            string titleFbml = "<fb:userlink uid=\"" + fbApplication.Service.UserID + "\" /> said '" + greeting + "'";
                            string bodyFbml = BuildStoryFbml(ids, greeting);
                            FeedStoryTemplate feedTemplate = new FeedStoryTemplate(titleFbml,bodyFbml);
                            FeedStory feedStory = new FeedStory(feedTemplate,ids[counter]);
                            bool val = fbApplication.Service.Feed.PublishMiniFeedStory(feedStory);
--endsnippet--

Any suggestions??

Thank you in Advance!!

Regards
Ranjit Vaity