WordPress.org

Forums

Simple Facebook Connect
[resolved] Facebook Like button disappear after upgrade (12 posts)

  1. jessada
    Member
    Posted 3 years ago #

    Hi, I'm the fan of your app and use SFC like button for a while.
    After upgrade to the latest version the like button is not show up

    I'd look around the forum and tried add footer code in footer.php but it still not work

    here my site http://fundmanagertalk.com

    and this is the code I'm using with my Home Page for Twitter and Facebook button

    Noted that I dont know coding. Thanks very much in advance

    `<?php echo tweetbutton(); if(function_exists("SFBSB_direct")) {echo SFBSB_direct("button_count");}?><?php sfc_like_button(); ?>

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    If you upgraded from 0.25 to 1.1 or something like that, you will need to go to the SFC Settings and enable the Like module and similar. It's not separate plugins anymore.

  3. jessada
    Member
    Posted 3 years ago #

    Hi, The Like Button Sub-plugin is already enable but the button still not appear in the home page (landing page) anyway.

    I also try this follow code that I got from internet, the tweet button for STC is work fine but the Facebook like button no show anyway.

    Any other possible solution, please recommend

    <?php if(function_exists('sfc_like_button')) : ?>
    <div class="fbConnect">
    <?php sfc_like_button(array('layout' => 'button_count')); ?>
    </div>
    <?php endif; ?>
    <?php if(function_exists('stc_tweetbutton')) : ?>
    <div class="twitConnect">
    <?php stc_tweetbutton(); ?>
    </div>
    <?php endif; ?>
    <div class="clear"></div>

  4. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    You have something putting the FB Share button on the page. The Share button code is incompatible with FB's newer code (which SFC uses) and is not supported by Facebook any longer. Remove the share button.

  5. jessada
    Member
    Posted 3 years ago #

    I'd already remove FB Share button from single.php

    and replace with

    <?php if(function_exists('sfc_like_button')) : ?>
    	<div class="fbConnect">
    	<?php sfc_like_button(); ?>
    	</div>
    	<?php endif; ?>
    	<?php if(function_exists('stc_tweetbutton')) : ?>
    	<div class="twitConnect">
    	<?php stc_tweetbutton(); ?>
    	</div>

    The like button still not appear in each post page and also not appeear in home page (landing page)

    Please recommend further correction, thank you very much (from Thailand)

  6. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    Okay, now the code you have for the Fan Box in the text widget is interfering. Use the SFC Fan Box widget instead of that code you have in the text widget.

  7. jessada
    Member
    Posted 3 years ago #

    Thank you very much for your patience, the problem solved ^^
    I will send you some beer.

    PS. last short question, can u suggest how to modify my code to make SFC like button and STC twitter button stay next to each other on the same line. The current code I use make 2 buttons stay on different line and look not nice.

  8. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    That's a CSS issue, and CSS issues are hard to solve without seeing the actual page. Can you post a link to the page where they don't line up?

  9. jessada
    Member
    Posted 3 years ago #

    please see my home landing page at http://fundmanagertalk.com

    and each post page at http://fundmanagertalk.com/short-term-crisis-long-term-opportunity/

    thanks

  10. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    .fbConnect, .twitConnect {
    float:left;
    }

    You may also want to reduce the width of the like button. It defaults to 450.

    The way to do that would be like this:

    <?php sfc_like_button(array('width'=>225)); ?>

    Change the number as needed.

  11. jessada
    Member
    Posted 3 years ago #

    I try to blend your code with my current code in different way but stil not work can u please help suggest, thank you

    .fbConnect, .twitConnect {
    float:left;
    }

    PS. my current SFC & STC code

    `<?php if(function_exists('sfc_like_button')) : ?>
    <div class="fbConnect">
    <?php sfc_like_button(); ?>
    </div>
    <?php endif; ?>
    <?php if(function_exists('stc_tweetbutton')) : ?>
    <div class="twitConnect">
    <?php stc_tweetbutton(); ?>
    </div>`

  12. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    You would put that code I gave you in your theme's stylesheet. It needs no "blending".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic