Skip to content

Instantly share code, notes, and snippets.

@flyingoctopus
Created March 14, 2011 21:20
Show Gist options
  • Save flyingoctopus/869914 to your computer and use it in GitHub Desktop.
Save flyingoctopus/869914 to your computer and use it in GitHub Desktop.
how awesome is this code?
announce_party: function(cb_name, info)
{
info = this.parse_flash_args(info);
var publishHref = window.location.href.split('?')[0];
var chr;
if (info.screen != '' && info.screen != undefined)
{
if (publishHref.indexOf("?")!=-1) {
chr = "&";
}
else {
chr = "?";
}
publishHref += chr + "target_screen=" + info.screen + "_" + this.id;
}
FacebookJSInterface.stream_publish(cb_name, info.prompt, info.userMessage, info.attachmentName, info.attachmentCaption, info.attachmentDescription, publishHref, info.imageURL);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment