agorapulse / grails-facebook-sdk

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

Channel file content is wrong? #28

Closed confile closed 11 years ago

confile commented 11 years ago

The default content of the channel file ist

<script src='//connect.facebook.net/en_US/all.js''>

The facebook documentation says it should be:

 <script src="//connect.facebook.net/en_US/all.js"></script>

I think the first quotes are wrong and there is no closing js tag.

Do I have to provide a channel file for caching or is it still done with your plugin?

If yes? why should I provide a channel file by myself?

benorama commented 11 years ago

The all.js script is automatically imported by Facebook JS SDK thanks to initJS tag.

You define the country locale in the initJS tag:

// No locale, default to server locale (usually Locale.US)
<facebook:initJS appId="${facebookContext.app.id}" />
// For french locale
<facebook:initJS appId="${facebookContext.app.id}" locale="${Locale.FRANCE}" />
// For german locale
<facebook:initJS appId="${facebookContext.app.id}" locale="${Locale.GERMANY}" />

In next release (coming out next week), we will check if the provided locale is supported by Facebook.