WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Custom FB Send / XFBML not working with SFC Base plugin active (7 posts)

  1. Ralph83
    Member
    Posted 2 years ago #

    I'm trying to implement the custom XFBML Like/Send buttons, though they weren't displayed. After hours of trying to figure it all out, I noticed the XFBML buttons work as soon as SFC Base is deactivated.

    So I looked at the SFC Base code and managed to narrow the issue down to the sfc_featureloader() function. When I remove the output of this function, the XFBML buttons work.

    I'm using the following code to render the buttons:

    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APPIDXXXXX&xfbml=1"></script><fb:like href="URL" send="true" layout="button_count" width="200" show_faces="false" font=""></fb:like>

    As you can see it loads all.js, while SFC loads FeatureLoader.js.php. And all.js has been commented out in SFC sfc_featureloader() function.

    What can I do, to get both the plugin and the XFBML buttons to work?

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

  2. Ralph83
    Member
    Posted 2 years ago #

    Ok, I just found out that FeatureLoader.js is the old way and all.js the new way. And the two can't work together, something to do with FB.init I guess.

    Does this mean the SFC plugin has to be updated to work with all.js? Or can I just uncomment all.js in the sfc_featureloader() function?

  3. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Try the newer version of the plugin. The old version is no longer undergoing development.

    http://plugins.svn.wordpress.org/simple-facebook-connect/branches/new-sfc/

  4. zhonghua
    Member
    Posted 2 years ago #

    hi, this means, there is a coming up new version of this plugin? thanks

  5. Ralph83
    Member
    Posted 2 years ago #

    Thanks for your quick reply!

    Well, the buttons do seem to work in combi with the plugin now. But the plugin looks unfinished. Is this correct? For example, I don't see FB Comment in the plugin list anymore, though I've uploaded it.

    When will the final version be released?

  6. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    The new version doesn't have separate plugins anymore. Check the settings screen.

    I'll release it when it's ready. :)

  7. Ralph83
    Member
    Posted 2 years ago #

    Ah, that explains a lot :) Thanks for the heads up!

    Sure, I understand it's a spare time project.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic