I have a FaceBook game that is done in SilverLight. It makes a call to JavaScript from the SilverLight HTML bridge. I do not want an UI that asks the user for a comment, I just want their score that was passed from the SilverLight app to post on their feed. The following code does nothing. It does not throw an exception, but does exactly nothing.
Any help you can send my way that will explain how to fix this so that it posts to a users feed without UI would be greatly, greatly appreciated.
function PostToFeed(strCaption)
{
function callback(response)
{
}
var obj =
{
method: 'stream.publish',
// was using method: 'feed',
link: 'https://apps.facebook.com/blackjackguru/',
picture: 'https://metamorphosisapps.com/blackjackguru/BlackjackIcon.gif',
name: 'Blackjack Guru Accomplishment',
caption: strCaption,
message: 'I love this game!',
description: 'Play blackjack with the best blackjack game on FaceBook.'
};
FB.ui(obj, callback);
}