webtechnick/CakePHP-Facebook-Plugin — pull request #152 by lucascampelo (2013-12-03 16:37:45+00:00)
Title: Added a custom trigger on document element

This code create and call a custom event called "fbready" on document element. Very useful for custom javascript code on specific pages. Example:

document.addEventListener('fbready', function(event){
// Do Something
});
// or
jQuery(document).on('fbready',function(event){
// Do Something
});