Beste leden,
Alle administratoren van forums die de Facebook Connect module hebben, kunnen de huidige versie updaten. Vanaf 30 april 2015 zal de oude versie niet meer werken. Daarom moet je de Facebook applicatie resetten zodat de module goed werkt (updaten tot in ieder geval versie v2.2).
1. Update je Facebook Connect applicatie
Voor controle, ga naar Facebook Developers (terwijl je verbonden bent) en klik op "my Apps":
Kijk vervolgens naar je eigen versie:
OK
OK
- Als je versie al v2.2 is, zal je Facebook Connect nog steeds werken, maar we raden je sterk aan om over te stappen op v2.3
- Als je huidige versie v1.0 is, moet je de applicatie verwijderen en opnieuw instellen.
Op naar de Facebook Connect tutorial (nog niet in het Nederlands beschikbaar) :add:
2. Aanpassingen in de templates (voor alle forumversies)
Als je een gepersonaliseerde forumtemplate hebt, moet je de volgende aanpassingen maken:
:add: index_body.tpl
Vervang:
- Code:
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
Door:
- Code:
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
Vervang:
- Code:
<!-- BEGIN switch_fb_index_login --> <div id="fb-root"></div> <script type="text/javascript"> //<![CDATA[ FB.init({ appId: '{switch_fb_index_login.FACEBOOK_APP_ID}', status: true, cookie: true, xfbml: true, oauth: true }); //]]> </script> <!-- END switch_fb_index_login -->
Door:
- Code:
<!-- BEGIN switch_fb_index_login --> <div id="fb-root"></div> <script> FB.init({ appId : {switch_fb_index_login.FACEBOOK_APP_ID}, cookie : true, xfbml : true, oauth : true, version : 'v2.3' });
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <!-- END switch_fb_index_login -->
:add: overall_footer.tpl
Vervang:
- Code:
<!-- BEGIN switch_facebook_login --> <div id="fb-root"></div> <script type="text/javascript"> //<![CDATA[ FB.init({ appId: '{switch_facebook_login.FACEBOOK_APP_ID}', status: true, cookie: true, xfbml: true, oauth: true }); //]]> </script> <!-- END switch_facebook_login -->
Door:
- Code:
<!-- BEGIN switch_facebook_login --> <div id="fb-root"></div> <script type="text/javascript"> FB.init({ appId : {switch_facebook_login.FACEBOOK_APP_ID}, cookie : true, xfbml : true, oauth : true, version : 'v2.3' });
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <!-- END switch_facebook_login -->
:add: overall_footer_end.tpl
Vervang:
- Code:
<!-- BEGIN switch_facebook_login --> <div id="fb-root"></div> <script type="text/javascript"> //<![CDATA[ FB.init({ appId: '{switch_facebook_login.FACEBOOK_APP_ID}', status: true, cookie: true, xfbml: true, oauth: true }); //]]> </script> <!-- END switch_facebook_login -->
Door:
- Code:
<!-- BEGIN switch_facebook_login --> <div id="fb-root"></div> <script type="text/javascript"> FB.init({ appId : {switch_facebook_login.FACEBOOK_APP_ID}, cookie : true, xfbml : true, oauth : true, version : 'v2.3' });
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <!-- END switch_facebook_login -->
:add: profile_add_body.tpl
Vervang:
- Code:
<!-- BEGIN switch_fb_account_not_linked --> <fb:login-button size="medium" onlogin="facebook_link()" v="2">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</fb:login-button> <!-- END switch_fb_account_not_linked -->
Door:
- Code:
<!-- BEGIN switch_fb_account_not_linked --> <fb:login-button size="medium" onlogin="facebook_link()" >{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</fb:login-button> <!-- END switch_fb_account_not_linked -->
Vervang:
- Code:
<!-- BEGIN switch_preferences_menu --> <!-- BEGIN switch_fb_connect --> <div id="fb-root"></div> <script type="text/javascript"> //<![CDATA[ FB.init({ appId: '{switch_preferences_menu.switch_fb_connect.FACEBOOK_APP_ID}', status: true, cookie: true, xfbml: true, oauth: true }); //]]> </script> <!-- END switch_fb_connect --> <!-- END switch_preferences_menu -->
Door:
- Code:
<!-- BEGIN switch_preferences_menu --> <!-- BEGIN switch_fb_connect --> <div id="fb-root"></div> <script type="text/javascript"> FB.init({ appId: '{switch_preferences_menu.switch_fb_connect.FACEBOOK_APP_ID}', cookie : true, xfbml : true, oauth : true, version : 'v2.3' });
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <!-- END switch_fb_connect --> <!-- END switch_preferences_menu --> :add: mod_login.tpl
Vervang:
- Code:
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_login.switch_fb_connect_login.L_FB_PERMISSIONS}" class="margTop4">{switch_login.switch_fb_connect_login.L_FB_LOGIN_BUTTON}</fb:login-button>
Door:
- Code:
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_login.switch_fb_connect_login.L_FB_PERMISSIONS}" class="margTop4">{switch_login.switch_fb_connect_login.L_FB_LOGIN_BUTTON}</fb:login-button>
Vervang:
- Code:
align="center"><fb:login-button size="small" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_login_small.switch_fb_connect_login.L_FB_PERMISSIONS}" class="margTop4">{switch_login_small.switch_fb_connect_login.L_FB_LOGIN_BUTTON}</fb:login-button>
Door:
- Code:
align="center"><fb:login-button size="small" onlogin="window.location='/facebook_connect.forum'" scope="{switch_login_small.switch_fb_connect_login.L_FB_PERMISSIONS}" class="margTop4">{switch_login_small.switch_fb_connect_login.L_FB_LOGIN_BUTTON}</fb:login-button>
Vervang:
- Code:
<!-- BEGIN switch_fb_widget_login --> <div id="fb-root"></div> <script type="text/javascript"> //<![CDATA[ FB.init({ appId: '{switch_fb_widget_login.FACEBOOK_APP_ID}', status: true, cookie: true, xfbml: true, oauth: true }); //]]> </script> <!-- END switch_fb_widget_login -->
Door:
- Code:
<!-- BEGIN switch_fb_widget_login --> <div id="fb-root"></div> <script> FB.init({ appId : {switch_fb_widget_login.FACEBOOK_APP_ID}, cookie : true, xfbml : true, oauth : true, version : 'v2.3' });
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <!-- END switch_fb_widget_login -->
Bedankt ActieForum |