Last change
on this file since 8283 was
8283,
checked in by rub, 13 years ago
|
Fix bad initialization
|
-
Property svn:eol-style set to
LF
|
File size:
955 bytes
|
Line | |
---|
1 | {if $fbp.async_script} |
---|
2 | <div id="fb-root"></div> |
---|
3 | <script> |
---|
4 | window.fbAsyncInit = function() {ldelim} |
---|
5 | FB.init({ldelim} |
---|
6 | appId : '{$FACEBOOK_APP_ID}', |
---|
7 | status : true, // check login status |
---|
8 | cookie : true, // enable cookies to allow the server to access the session |
---|
9 | xfbml : true // parse XFBML |
---|
10 | {rdelim}); |
---|
11 | {rdelim}; |
---|
12 | (function() {ldelim} |
---|
13 | var e = document.createElement(script); |
---|
14 | e.src = document.location.protocol + //connect.facebook.net/{$LANGUAGE}/all.js; |
---|
15 | e.async = true; |
---|
16 | document.getElementById(fb-root).appendChild(e); |
---|
17 | {rdelim}()); |
---|
18 | </script> |
---|
19 | {else} |
---|
20 | <div id="fb-root"></div> |
---|
21 | <script src="http://connect.facebook.net/{$LANGUAGE}/all.js#xfbml=1"></script> |
---|
22 | <script> |
---|
23 | FB.init({ldelim} |
---|
24 | appId : '{$FACEBOOK_APP_ID}', |
---|
25 | status : true, // check login status |
---|
26 | cookie : true, // enable cookies to allow the server to access the session |
---|
27 | xfbml : true // parse XFBML |
---|
28 | {rdelim}); |
---|
29 | </script> |
---|
30 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.