JSFiddle - React, Tailwind, and code Playground
by Chase Wilson
HTML
<script src="https://raw.github.com/gist/884484/Events.js"></script>
<script src="https://raw.github.com/gist/1049896/Extend.js"></script>
<script src="https://raw.github.com/gist/1006005/namespace.js"></script>
JavaScript
/*
Requires:
- Events: https://gist.github.com/884484
- Extend: https://gist.github.com/1049896
- Namespace: https://gist.github.com/1006005
*/
SML = Object.namespace('SML',new Events);
window.fbAsyncInit = function(){
FB.init({
appId: 'your app id',
status: true,
cookie: true,
});
SML.fireEvent('FB.ready:latched');
};
SML.addEvent('FB.ready',function(){
FB.api('/me', function(response) {
console.log(response);
});
});