publishing to news feed strips the fbml/links

Apr 23, 2008 at 11:11 PM
So heres what i have;
public void fbmlBuild()
StringBuilder fbmlBuilder = new StringBuilder();
fbmlBuilder.Append("<div>");
fbmlBuilder.Append("<fb:name capitalize=\"true\" uid=\"");
fbmlBuilder.Append(fba.Service.UserID);
fbmlBuilder.Append("\" firstnameonly=\"true\" />");
fbmlBuilder.Append(" Is using <b>");
fbmlBuilder.Append("my app");
fbmlBuilder.Append("</b> to find new things</div>");
fbmlBuilder.Append("<div><a href=\"http://apps.facebook.com/myapp/start.aspx?cid=");
fbmlBuilder.Append(Class.id.ToString());
fbmlBuilder.Append("\">Click Here To Use It</a></div>");
fbmlBuilder.Append("<fb:name capitalize=\"true\" uid=\"");
fbmlBuilder.Append(fba.Service.UserID);
fbmlBuilder.Append("\" firstnameonly=\"true\" /> It has many uses blah blah");
return fbmlBuilder.ToString();

....

fbs.Feed.PublishMiniFeedStory(user.Name + " just announced he/she loves using " + myapp + , fbmlBuild(), null);

//etc

Now, i get the title in the feed, but not the link ... all i get is "It has many uses blah blah"

Any help greatly appreciated!
Apr 24, 2008 at 6:37 PM
If you use the Feed Preview Tool http://developers.facebook.com/tools.php?feed with your text, you'll see the exact same results. Checking the Facebook Developer's Wiki for the matching API call (feed.publishActionOfUser) at http://wiki.developers.facebook.com/index.php/Feed.publishActionOfUser#Response, you'll see that "The body is optional, is limited to 200 display characters (excluding tags), and can include the tags fb:userlink, fb:name, <a>, <b>, and <i>." Your div tags are being stripped out unceremoniously.

Bill
Apr 25, 2008 at 5:51 AM

wcbrown wrote:
If you use the Feed Preview Tool http://developers.facebook.com/tools.php?feed with your text, you'll see the exact same results. Checking the Facebook Developer's Wiki for the matching API call (feed.publishActionOfUser) at http://wiki.developers.facebook.com/index.php/Feed.publishActionOfUser#Response, you'll see that "The body is optional, is limited to 200 display characters (excluding tags), and can include the tags fb:userlink, fb:name, <a>, <b>, and <i>." Your div tags are being stripped out unceremoniously.

Bill


Bill you are a godsend! Thanks man, that solved it. I really appreciate your contribution to this community.
Apr 25, 2008 at 10:15 PM
No problem. Glad to help!

Bill