This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

slicer

  • ****
  • 204 posts
How to integrate new FB plugin
« on: January 30, 2018, 12:36:17 AM »
How do I integrate your version of FB plugin to Stela? doesn't seem to be working using  the code provided in the instructions unless I'm doing something very wrong which I think is the case  :P.

*

MB Themes

Re: How to integrate new FB plugin
« Reply #1 on: January 30, 2018, 08:35:24 AM »
@slicer
You must put it into user-register.php and inc.auth.php + add target="_top" into <a
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ****
  • 204 posts
Re: How to integrate new FB plugin
« Reply #2 on: January 31, 2018, 01:46:00 AM »
Well (R.I.P.) for me, I tried in many ways and it didn't work out I give up =( Facebook plugin is cursed.

Error 500 bla bla

if you can tailor the right code so I can insert it I'll try it again if not! farewell.

*

MB Themes

Re: How to integrate new FB plugin
« Reply #3 on: January 31, 2018, 01:27:38 PM »
@slicer
Where you get error 500? is it just on stela theme?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ****
  • 204 posts
Re: How to integrate new FB plugin
« Reply #4 on: February 01, 2018, 10:12:19 PM »
@slicer
Where you get error 500? is it just on stela theme?

Thanks, only with Stela theme, now I see it works fine with Bender I registered in a sec and login correctly wow first time I see that happening. BTW thanks a lot for giving us FB Plugin.
« Last Edit: February 01, 2018, 10:14:22 PM by slicer »

*

MB Themes

Re: How to integrate new FB plugin
« Reply #5 on: February 02, 2018, 08:45:56 AM »
@slicer
Can you send me link to reproduce issue?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ****
  • 204 posts
Re: How to integrate new FB plugin
« Reply #6 on: February 02, 2018, 03:49:43 PM »
The problem starts with "I don't know how to link it.

I got this very code:
Code: [Select]
<?php if(function_exists('facebook_login')) { echo facebook_login(); } ?> to put on user-register.php and inc.auth.php


then I follow this:
Code: [Select]
<div class="h3"><?php _e('Connect with social network''stela'); ?></div>
      <?php if(class_exists('OSCFacebook')) { ?>
        <?php 
          $user 
OSCFacebook::newInstance()->getUser();
          if( !
$user or !osc_is_web_user_logged_in() ) {
        
?>

          <a class="external-log fb btn round3 tr1" target="_top" href="<?php echo OSCFacebook::newInstance()->loginUrl(); ?>"><i class="fa fa-facebook"></i><?php _e('Facebook''stela'); ?></a>
        <?php ?>
      <?php ?>

      <?php if(function_exists('gc_login_button')) { ?>
        <a class="external-log gc btn round3 tr1" target="_top" href="<?php gc_login_button('link-only'); ?>"><i class="fa fa-google"></i><?php _e('Google''stela'); ?></a>
      <?php ?>
    </form>
  </div>


Then I tried something like this:

Code: [Select]
<div class="h3"><?php _e('Connect with social network''stela'); ?></div>
      <?php if(function_exists('facebook_login')) { ?>
        <a class="external-log gc btn round3 tr1" target="_top" href="<?php facebook_login('link-only'); ?>"><i class="fa fa-facebook"></i><?php _e('Facebook''stela'); ?></a>
      <?php ?>

      <?php if(function_exists('gc_login_button')) { ?>
        <a class="external-log gc btn round3 tr1" target="_top" href="<?php gc_login_button('link-only'); ?>"><i class="fa fa-google"></i><?php _e('Google''stela'); ?></a>
      <?php ?>
    </form>
  </div>


And this is frustrating because the plugin is working fine but I don't know how to make it work on stela or make it show up at least but it doesn't happen is too hard for me.

This is a black whole can you tell whats' right code needed to show up this sweet btn up?


NOTE: on Bender I just used this code on register
Code: [Select]
<?php if(function_exists('facebook_login')) { echo facebook_login(); } ?> and it worked 1 shot.

Marked as best answer by slicer on February 02, 2018, 07:41:54 PM
*

MB Themes

Re: How to integrate new FB plugin
« Reply #7 on: February 02, 2018, 05:48:30 PM »
@slicer
facebook_login() function already contains <a> </a> tags... just put it there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ****
  • 204 posts
Re: How to integrate new FB plugin
« Reply #8 on: February 02, 2018, 06:43:42 PM »
@slicer
facebook_login() function already contains <a> </a> tags... just put it there.

Ohh jesus thanks man finally I can finally see the light  ;)

*

Loi

  • **
  • 5 posts
Re: How to integrate new FB plugin
« Reply #9 on: August 25, 2018, 09:41:02 AM »
@slicer
facebook_login() function already contains <a> </a> tags... just put it there.

Ohh jesus thanks man finally I can finally see the light  ;)

Sorry, I need MBtheme and you help. I still stuck at this.
Could you please share the complete code for this facebook connection, please.

Appreciate your kind help

*

MB Themes

Re: How to integrate new FB plugin
« Reply #10 on: August 25, 2018, 01:33:33 PM »
@Loi
You have it on config page.
Code: [Select]
<?php if(function_exists('facebook_login')) { echo facebook_login(); } ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots