WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Simple Facebook Connect]: SFC-Base interferes with fb:like xfbml calls (8 posts)

  1. derekbeck
    Member
    Posted 3 years ago #

    Hi Otto, et al,

    I've spent basically all day trying to get a facebook like icon to work with allowing for comments (using the xfbml). It seems the problem I was having in getting it to work was your SFC core (I also had your SFC comments feature enabled). Only by disabling the core does it work.

    I followed setting it up as described:

    http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/

    and also tried this approach:

    http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/

    The problem with these techniques to enable the like button using xfbml, as opposed to the iframe version which gives no comment box, is that something in your sfc-base is interferring. In Google Chrome I get no like button while your sfc-base is enabled. In IE8 I get nothing either, but many times I'll get a "out of memory" popup error (always saying line 10). Again, all of these problems instantly disappear and my like button works well enough once the sfc-base and associated items are disabled, but the base is the problem I think.

    I'm happy I found the cause, but sad that I cannot use your facebook connect feature for comments, unless this is a quick fix or you have some suggestions?

    Thanks,
    Derek

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    SFC currently uses the old connect libraries which is not compatible with the newer javascript api libraries.

    Version 1.0 will use the new libraries. There's a beta of it in the SVN which you can use if you like.

    The beta version uses the XFBML like button.

  3. derekbeck
    Member
    Posted 3 years ago #

    I'd be happy to toy w/ the beta... what is this SVN? Where do I find the beta?

  4. derekbeck
    Member
    Posted 3 years ago #

    oh, and when do you expect the version 1.0 to be available as a full release?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    Test version is here: http://plugins.svn.wordpress.org/simple-facebook-connect/trunk/new-sfc/

    You may notice that it's woefully incomplete.

    As for when it's available, well, when I get some time to finish it. :)

  6. derekbeck
    Member
    Posted 3 years ago #

    Thanks Otto. I replaced the sfc.php and sfc-base.php and now my hard-coded xfbml like button works fine.

    The only extra plugin I'm using from you is the sfc-comments.php. Unfortunately, you've not yet updated that file, and the old one does not work with the new base, though it nearly does:

    It successfully puts the login button on the page, successfully allows the user to login, and successfully alerts them that they are logged in. The only thing it is not doing is filling in the name, email, url info or thumbnail image, so that the form is not filled in, and thus the user still cannot post. (If you try, it gives the error that name and email are required.)

    I don't suppose you have any off the cuff ideas on how to fix this? I'd love to get it to work early if I could, before your release. Otherwise, may I be so bold as to suggest you perhaps make this the next file you work on for the update?

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    Yeah, the old stuff is utterly incompatible with the new stuff. Don't even try it.

    Comments will come soon.

  8. derekbeck
    Member
    Posted 3 years ago #

    Okay, thanks. I'll keep my eye out for an update to facebook connect. In the meantime, I've just re-enabled your older version, as I want the comments login, and disabled the new xfbml like button, as I find it buggy anyhow (sometimes the pop up does not appear, esp. on IE8).

Topic Closed

This topic has been closed to new replies.

About this Topic