WordPress.org

Forums

Simple Facebook Connect
[resolved] button no longer appears (9 posts)

  1. rumlab
    Member
    Posted 3 years ago #

    updated to version 1.0.

    using this shortcode:

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

    Now button no longer appears.

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

    [Please post code snippets between backticks or use the code button.]

  2. rumlab
    Member
    Posted 3 years ago #

    Tried to disable all other plugins, also disabling my javascript in the header (simple show/hide), but still no button appearing. Is it possible to download ver 0.25 as it seemed to work?

    Thanks

    PS: Also tried beta files

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

    Posted 3 years ago #

    Go to the SFC Settings page. Turn on the Like button module. Save.

    Also, 0.25 will no longer work at all after October 1st, so downgrading isn't a good option.

  4. rumlab
    Member
    Posted 3 years ago #

    Hi Otto. I did that too ;) Also tried different modules, also changing the shortcode accordingly.

    Too bad about the 0.25.

    EDIT: I do have this code generated, but still no button:

    <fb:like href='http%3A%2F%2Frumlab.dk%2Farchitecture%2Flearning-lab' send='false' layout='standard' show_faces='true' width='400' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>

  5. rumlab
    Member
    Posted 3 years ago #

    After investigating the mechanics of the facebook thing a little further :) -
    I noticed, that I don't have any Open Graph tags generated...

    And replacing sfc_base with latest beta, I get a Server Internal Error, loading the site.

    Sorry if I'm shooting left and right.

  6. rumlab
    Member
    Posted 3 years ago #

    On an extra note, I also tried it on another site I'm managing, also using wordpress 3.2.1, with the same result. I get HTML code generated but no button, and no meta tags.

    Thanks

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

    Posted 3 years ago #

    Does your theme not have the proper wp_head() and wp_footer() calls in it?

    Try the default theme. See if it works there.

  8. rumlab
    Member
    Posted 3 years ago #

    No I don't have wp_head and wp_footer. They mess up my Nextgen gallery. I had an issue with some jquery on a different site, where instead of adding wp_head/footer, I added these three lines to my header:

    <script type='text/javascript' src='http://ncfg.dk/wp-includes/js/l10n.js?ver=20101110'></script>
    <script type='text/javascript' src='http://ncfg.dk/wp-includes/js/jquery/jquery.js?ver=1.6.1'></script>
    <script type='text/javascript' src='http://ncfg.dk/wp-includes/js/jquery/jquery.form.js?ver=2.73'></script>

    Which did the the trick there, but it doesn't work here. Are wp_head and footer mandatory to make your plugin work?

    And yes, it does work with the default theme.

    EDIT: It works :). I just added this code to my footer instead of wp_footer:

    <div id="fb-root"></div>
    <script type="text/javascript">
      window.fbAsyncInit = function() {
        FB.init({appId: '196828327005607', status: true, cookie: true, xfbml: true });
          };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>

    Thanks!

    M

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

    Posted 3 years ago #

    wp_head and wp_footer are mandatory in all themes. Not having them is a terrible idea. If a plugin requires you to remove them, remove the plugin instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic