Support » Plugin: Add Twitter, Facebook Like, Google plus one Social share » [Plugin: Add Twitter, Facebook Like, Google plus one Social share] FB errors with use of plugin

  • Resolved eoren1

    (@eoren1)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author BeingMaverick

    (@beingmaverick)

    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.

    Thread Starter eoren1

    (@eoren1)

    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.

    Thread Starter eoren1

    (@eoren1)

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

    Thread Starter eoren1

    (@eoren1)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Add Twitter, Facebook Like, Google plus one Social share] FB errors with use of plugin’ is closed to new replies.