Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 794 Bytes
<html>
<head>
<script src='http://coffeescript.org/extras/coffee-script.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<title>My Facebook Login Page</title>
</head>
<body>
<div id="fb-root"></div>
<script type="text/coffeescript">
$j = jQuery
window.fbAsyncInit = ->
FB.init
appId: '340097046032196' #put your own appId here
status: true
cookie: true
xfbml: true
oauth: true
$j ->
id = 'facebook-jssdk'
return if $j(id).length > 0
sdk = $j.getScript "http://connect.facebook.net/en_US/all.js"
sdk.id = id
sdk.async = true
</script>
<div class="fb-login-button">Login with Facebook</div>
</body>
</html>