Simple Facebook Connect
Problem between SFC (like&share) and NextGen (4 posts)

  1. ebruni
    Posted 5 years ago #


    SFC ver. 0.21
    NextGen Gallery ver 1.6.1

    "Like and Share" button manually.

    With "SFC like" and "SFC share" disabled the NextGen Album shows good


    but enabling "SFC Like Button" or "Share Button" the gallery is showed in page header


    with this HTML Code


    where you can see body and head code mixed.

    I don't know where is the problem (probably in nextgen code) but I solved changing these line, in function sfc_share_meta in sfc-share.php and sfc-like.php,

    $content = apply_filters('the_content', $content);


    $content = sfc_share_button_automatic($content);

    I will be very happy if someone can solve finally this problem

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

    Posted 5 years ago #

    Both the like and share buttons add meta data to the header. This is necessary.

    Your change will break them and prevent them from working at all. The buttons may show up, but the content will not be in the metadata and so they will not operate properly.

  3. ebruni
    Posted 5 years ago #

    Obviously I checked "like" and "share" buttons and all works well. I know that my changes aren't good but, at least for me, they work.

    I understand that both sfc and nextgen require to add meta to the header but, of course, their interaction produce a broken behavior of the nextgen album visualization as you see in the snapshots.

  4. ebruni
    Posted 5 years ago #

    I forgot to say that you can test it in my work in progress website


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic