WordPress.org

Ready to get started?Download WordPress

Forums

Add Twitter, Facebook Like, Google plus one Social share
[resolved] FB errors with use of plugin (5 posts)

  1. eoren1
    Member
    Posted 2 years ago #

    First, let me say that this is my favorite social sharing plugin for WP and I have tried almost all of them.

    That being said, I have had issues with FB adding the correct image when sharing a link on my page. I tried a number of open graph plugins and recently added Facebook like thumbnail which, when I enabled it, gave me this error:

    Fatal error: Cannot redeclare fb_like_thumbnails() (previously declared in /website info/wp-content/plugins/twitter-facebook-google-plusone-share/tf_display.php:321) in /website info/wp-content/plugins/facebook-like-thumbnail/facebook-like-thumbnail.php on line 57

    When I only enable the Twitter/FB/Google Social Share plugin, I have issues with images showing in links and get these errors in the FB developers url checker:

    Like Button Warnings That Should Be Fixed

    Admins And App ID Missing: fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high clickthrough rate.
    Like Button Tag Missing: og:title is missing. The og:title meta tag is necessary for Facebook to render a News Feed story that generates a high clickthrough rate.
    Like Button Tag Missing: og:type is missing. The og:type meta tag is necessary for Facebook to render a News Feed story that generates a high clickthrough rate.
    Like Button Tag Missing: og:image is missing. The og:image meta tag is necessary for Facebook to render a News Feed story that generates a high clickthrough rate.
    Open Graph Warnings That Should Be Fixed

    Inferred Property: The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property: The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property: The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

    When I disable this plugin and only enable the FB like thumbnail, the image displays perfectly in links (and when others like my link) as well as passing the FB developer URL checker. Please let me know if it is possible to disable the open graph properties of your plugin so that I can use the other one for this task.

    Thank you.

    http://wordpress.org/extend/plugins/twitter-facebook-google-plusone-share/

  2. BeingMaverick
    Member
    Plugin Author

    Posted 2 years ago #

    fb_like_thumbnails() function used in TF social share plugin is used by same name in other plugin.

    Changing the name of the function will resolve your issue.

    two files to change:

    1. twitter-facebook-share.php
    add_action('wp_head', 'fb_like_thumbnails');
    Replace the above name with whatever you want.

    2. tf_display.php
    search for fb_like_thumbnails
    Replace the 1 occurance of the function with whatever name you have given in the above twitter-facebook-share.php

    That should resolve the issue.

    I will try to include all the facebook like features in next release.

  3. eoren1
    Member
    Posted 2 years ago #

    It would be great to get improved open graph implementation in your plugin. I would prefer to just use that but find that even now I'm having issues with FB not being able to pull the correct image for a link. I'll make those changes and see if that works.
    Thanks for the quick reply and a great plugin.

  4. eoren1
    Member
    Posted 2 years ago #

    For now the changes you mentioned and adding back FB like thumbnail seem to be working perfectly.

  5. eoren1
    Member
    Posted 2 years ago #

    Update: Turns out it was Cloudfire's fault. Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic