The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[IMPORTANT] Facebook Connect update for forum Administrators

View previous topic View next topic Go down

Important [IMPORTANT] Facebook Connect update for forum Administrators

Post by Leviosa on April 29th 2015, 3:08 pm

Facebook Connect update for forum Administrators
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 Add

2. Templates modifications (All forum versions)




If you have personalized your forum templates you have to make the following changes:

Add 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 -->

Add 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 -->

Add 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 -->

Add 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 -->

 Add 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 :rose:


Last edited by APE on May 2nd 2015, 6:59 pm; edited 1 time in total (Reason for editing : added the missing line >> Portal > mod_login)


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15358
Reputation : 1563
Language : French, English

http://help.forumotion.com

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Darkel on April 29th 2015, 3:11 pm

Thanks! @Buttercup Forumotion keeps gettin better and better. thumleft

Darkel
Hyperactive

Male Posts : 2128
Reputation : 257
Language : English, Tagalog
Location : Philippines

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by tugatech on April 29th 2015, 3:53 pm

@Buttercup , nice to see this.
But, for itself, this doesn't solve the issue.

You "fb_login.js" file, responsible for the login, is still with outdated code. 
This change will help forum owners to change to the new API, but the Facebook connect will still be broken if nothing change in the javascript above...

Also, the changes described in this announce will also break the login in any forumotion website, becouse (again) of the outdated code in the fb_login javascript...
Will the javascript be updated as well?

(I have read again the text. Razz )

Thanks

tugatech
Forumember

Male Posts : 174
Reputation : 8
Language : Portuguese
Location : Portugal

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Leviosa on April 29th 2015, 4:16 pm

@tugatech wrote:@Buttercup , nice to see this.
But, for itself, this doesn't solve the issue.

You "fb_login.js" file, responsible for the login, is still with outdated code. 
This change will help forum owners to change to the new API, but the Facebook connect will still be broken if nothing change in the javascript above...

Also, the changes described in this announce will also break the login in any forumotion website, becouse (again) of the outdated code in the fb_login javascript...
Will the javascript be updated as well?

(I have read again the text. Razz )

Thanks
"fb_login.js" is not responsible of login but registration and it will be sent online next week  


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15358
Reputation : 1563
Language : French, English

http://help.forumotion.com

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by tugatech on April 29th 2015, 4:19 pm

Nice... Very Happy

Thanks @Buttercup

tugatech
Forumember

Male Posts : 174
Reputation : 8
Language : Portuguese
Location : Portugal

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Hagoromo Otsutsuki on April 29th 2015, 6:35 pm

Thanks for the update!

Hagoromo Otsutsuki
Forumember

Male Posts : 514
Reputation : 21
Language : English
Location : Heaven

http://naruto-omniverse.forumotion.com/

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by YoshiGM on April 29th 2015, 7:44 pm

Finally a Facebook Connect Update!

Thanks #Forumotion Wink

YoshiGM
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by APE on April 30th 2015, 1:32 am

have updated all of the codes all but the last part i just can't find it on my system :O
where is this part kept lol

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 -->





APE
Manager
Manager

Male Posts : 8317
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Zorro on April 30th 2015, 10:01 am

Hi @APE ,

This template is for the widget mod_login, you can edit it on :

Display > Templates > Portal > mod_login

Wink

Zorro
Technician
Technician

Male Posts : 1
Reputation : 3
Language : French, English
Location : France

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by APE on May 2nd 2015, 6:56 pm

@Zorro wrote:Hi @APE ,

This template is for the widget mod_login, you can edit it on :

Display > Templates > Portal > mod_login

Wink
Thank you Sad @Zorro lol did not have to do it as i have not made any change to it before Wink





APE
Manager
Manager

Male Posts : 8317
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by SarkZKalie on May 4th 2015, 5:58 am

What about them? overall_footer.tpl and overall_footer_end.tpl. Are they same?

SarkZKalie
Forumember

Male Posts : 419
Reputation : 73
Language : English

http://rotavn.nstars.org/

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Leviosa on May 4th 2015, 2:57 pm

Hello

For your information the second update is now online Smile Your new members can register via Facebook Connect thumleft


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15358
Reputation : 1563
Language : French, English

http://help.forumotion.com

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by tugatech on May 4th 2015, 7:20 pm

@Buttercup
Awesome!

tugatech
Forumember

Male Posts : 174
Reputation : 8
Language : Portuguese
Location : Portugal

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Michael_vx on May 6th 2015, 12:54 pm

im a bit confused
is the template edits is the SDK update ?
or i need to do something with in the app dashboard from facebook page
 

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by (Tech.snop.tv) on May 6th 2015, 1:07 pm

i need best skin
my forum is very bad Sad
please help me
i need
(1think)skin

(Tech.snop.tv)
New Member

Posts : 2
Reputation : 1
Language : farsi

http://tech.snop.tv

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by (Tech.snop.tv) on May 6th 2015, 1:09 pm

i need best skin
my forum is very bad Sad
please help me
i need
(1think)skin

(Tech.snop.tv)
New Member

Posts : 2
Reputation : 1
Language : farsi

http://tech.snop.tv

Back to top Go down

Important Re: [IMPORTANT] Facebook Connect update for forum Administrators

Post by Leviosa on May 6th 2015, 3:43 pm

@(Tech.snop.tv) wrote:i need best skin
my forum is very bad Sad
please help me
i need
(1think)skin

@(Tech.snop.tv) wrote:i need best skin
my forum is very bad Sad
please help me
i need
(1think)skin
Please create a new topic! There is no assistance into announcement. Thanks


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15358
Reputation : 1563
Language : French, English

http://help.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum