Created
December 9, 2011 20:46
-
-
Save rustyrazorblade/1453230 to your computer and use it in GitHub Desktop.
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
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:fb="https://www.facebook.com/2008/fbml"> | |
<head> | |
<title>Broken invites</title> | |
</head> | |
<!-- url on my dev server: http://localhost:8888/static/fb_test.html --> | |
<body> | |
<div id="fb-root"></div> | |
<script src="http://connect.facebook.net/en_US/all.js"></script> | |
<p> | |
<input type="button" | |
onclick="sendRequestToRecipients(); return false;" | |
value="Send Request to User(s)" | |
/> | |
</p> | |
<script> | |
FB.init({ | |
appId : '151754164930479', | |
status : true, | |
cookie : true, | |
frictionlessRequests : true, | |
oauth: true | |
}); | |
function sendRequestToRecipients() { | |
FB.ui({method: 'apprequests', | |
message: 'My Great Request - you have a tab open' | |
}, requestCallback); | |
} | |
function requestCallback(response) { | |
// Handle callback here | |
console.log(response); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment