Skip to content

Instantly share code, notes, and snippets.

@rustyrazorblade
Created December 9, 2011 20:46
Show Gist options
  • Save rustyrazorblade/1453230 to your computer and use it in GitHub Desktop.
Save rustyrazorblade/1453230 to your computer and use it in GitHub Desktop.
<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