Created
March 14, 2011 21:20
-
-
Save flyingoctopus/869914 to your computer and use it in GitHub Desktop.
how awesome is this code?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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