agorapulse / grails-facebook-sdk

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

Further error after upgrate from 0.4.6 to 0.4.8 #38

Closed confile closed 11 years ago

confile commented 11 years ago

Caused by: groovy.lang.MissingMethodException: No signature of method: static grails.plugin.facebooksdk.FacebookLocalization.isLocaleSupported() is applicable for argument types: (java.lang.String) values: [en_US] Possible solutions: isLocaleSupported(java.util.Locale) at grails.plugin.facebooksdk.FacebookJSTagLib$_closure1.doCall(FacebookJSTagLib.groovy:38)

benorama commented 11 years ago

Indeed, you need to pass a Java locale to the facebook:initJS tag.

<facebook:initJS appId="${facebookContext.app.id}" locale="${Locale.US}" />
// Or
<facebook:initJS appId="${facebookContext.app.id}" locale="${Locale.GERMANY}" />

By default, it will use the current request locale, so this attribute might not be required in your case.

It should also solve your other issue.

benorama commented 11 years ago

Did you solve this issue?