Skip to content

Instantly share code, notes, and snippets.

@nanomag
Created December 6, 2012 18:36
Show Gist options
  • Save nanomag/4226896 to your computer and use it in GitHub Desktop.
Save nanomag/4226896 to your computer and use it in GitHub Desktop.
Script
<script>
function facebookjs(user_id) {
FB.ui({ method: 'friends.add', id: user_id }, Log.info.bind('friends.add callback'));
}
</script>
<button type="button" onclick="facebookjs(<%= @user.facebook %>)">Facebook</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment