How to publish an item on a users feed!
Developing Facebook applications is a trying and frustrating experience for many developers, myself included. My most recent frustration was getting an item to publish to the user’s mini-feed/friend’s newsfeed using Facebook.
Publishing frustrations aren’t isolated to just Facebook.; they extend to a lot of Facebook. developers out there. Here’s what I’ve learned about how to publish to a Facebook user’s mini feed:
Use the Feed Preview Console with Caution
The Feed Preview Console is a handy tool for figuring out what your published feed items may look like, but it needs to be used with caution. Why?
A number of HTML elements that can’t be rendered in the news feed via the Feed.publishTemplatizedActioncall can still be rendered using the Feed Preview Console.
I learned this the hard way; I had a feed template that included a number ofand tags and the Feed Preview Console rendered it without a complaint. However, when I attempted to publish that template I received a number of 360 and 362 errors from Facebook’s REST servers.