Sha256: c527d21965c91cd968f50d38cf98635c4131eefa6badef6556a15943c71b6b1a

Contents?: true

Size: 528 Bytes

Versions: 22

Compression:

Stored size: 528 Bytes

Contents

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({appId: '<%=FB_APP_ID%>', status: true, cookie: true, xfbml: true, oauth: true});
  FB.Event.subscribe('auth.sessionChange', function(response) {
    if (response.session) {
      // A user has logged in, and a new cookie has been saved
		window.location="<%=FB_CALLBACK_URL%>";
    } else {
      // The user has logged out, and the cookie has been cleared
		window.location="<%=FB_CLOSED_URL%>";
    }
  });
</script>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fbdoorman-0.7.9.1 app/views/facebook/old_fbjs.html.erb
fbdoorman-0.7.9 app/views/facebook/_fbjs.html.erb