Hello Dear Members,
All forum administrators who have set up the Facebook Connect module, can update the current version of the App. From April 30th 2015, the old version will no longer work. Therefore, you have to reset the Facebook App, so that the Facebook Connect Module works properly (at least to version v2.2). We made our best to update the whole option so that the option still work properly on your forum. However, we had some other urgent updates to send today (transparent for you but essential for the good work of your forum) That's why, we cannot send all Facebook modifications today... By consequences, Facebook connect for new members (registration via Facebook) won't work for few days.
Once all other updates over, we'll modify it. Meanwhile, you can start modifying the API by following our instructions:
1. Update your Facebook connect App
To verify, please enter Facebook Developers (in connected mode) and click on "my Apps":
Then, look at your version:
OK
OK
- If your version is already v2.2, your Facebook Connect will still work, but we highly recommend you to switch to the V2.3
- If your version is still v1.0, you've to delete it and reset the App.
Let's find our Facebook Connect Tutorial
2. Templates modifications (All forum versions)
If you have personalized your forum templates you have to make the following changes:
index_body.tpl
Replace the block :
- 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> By :
- 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> Replace the block :
- 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 -->
By:
- 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 -->
overall_footer.tpl
Replace the block : - 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 --> By :
- 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 --> overall_footer_end.tpl
Replace the block:
- 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 --> By :
- 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 --> profile_add_body.tpl
Replace the block :
- 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 --> By :
- 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 --> Replace the block :
- 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 --> By:
- 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 --> mod_login.tpl
Replace the block:
- 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> By:
- 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> Replace the block:
- 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> By :
- 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> Portal > mod_login Replace the block:
- 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 --> By:
- 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 --> Thanks |