agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

js script events click #21

Closed andersonf closed 11 years ago

andersonf commented 11 years ago

After upgrading to version 0.4.4 my facebook:loginLink stopped working. I had to add in and . Added a new script "bundle-fb-sdk_defer.js" with the click method in class loginLink button. Over the click event is not adding. I had to put the method into: $ (document). Ready (function () {...}); What am I doing wrong ?

benorama commented 11 years ago

You need to use the Resource Plugin (http://grails.org/plugin/resources) and set the correct r:layoutResources in your layouts.

This might be the cause of your issue. Check out the doc of the Resource Plugin, it's a fantastic plugin.