Created
December 6, 2012 18:36
-
-
Save nanomag/4226896 to your computer and use it in GitHub Desktop.
Script
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
<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