WordPress.org

Ready to get started?Download WordPress

Forums

WP-FacebookConnect
Breaks exsisting "Like" Buttons (4 posts)

  1. Greg Rickaby
    Member
    Posted 3 years ago #

    I was already running the Facebook SDK to generate "Like" buttons. Upon activation of your plug-in I saw this: http://i27.tinypic.com/5mlgxt.jpg

    When I deactivate the error disappears. I see the new version of the plug-in already offers auto-insertion of the "Like" button, but I would like to see an option to enable or disable that feature.

    Otherwise, thank you for the plug-in! The connect feature works great.

  2. Greg Rickaby
    Member
    Posted 3 years ago #

    Derrrrr

    I deleted:

    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
    	FB.init({appId: '126059490749466', 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>

    out of custom_functions.php and POOF the error disappeared.

    The issue is now, people must be "Connected" to even see the "Like" button.

  3. Greg Rickaby
    Member
    Posted 3 years ago #

    Scratch that too...

    I just placed: <?php echo fbc_render_like(); ?> into a hook and there is the like button for those who aren't connected.

  4. Greg Rickaby
    Member
    Posted 3 years ago #

    And one more... if you don't want the "Like" button to show up the same place as the connect button:

    • Open fbconnect.php
    • Scroll to line 525
    • Erase: echo fbc_render_like();
    • Save & Upload

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic