Created
November 7, 2012 13:39
-
-
Save tuupola/4031626 to your computer and use it in GitHub Desktop.
Facebook share and message
This file contains hidden or 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
$("#invite").bind("click", function(event) { | |
var invitation = { | |
method: "send", | |
name: "Lorem ipsum dolor sit amet", | |
link: "http://www.example.com/", | |
picture: "http://placekitten.com/95/95", | |
//to: next_uid, | |
description: "Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem." | |
}; | |
FB.ui(invitation, function(response) { | |
if (response && response.success) { | |
//console.log(response); | |
} else { | |
//console.log("Fail"); | |
} | |
}); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment