My pages where always failing the facebook object debugger test because this plugin was taking the 150×150 image. I made a simple change to the plugin and now it pulls the 300×200 image and facebook is happy.
I simply added the , ‘medium’ argument to the get_post_thumbnail_id method.
if ( has_post_thumbnail( $posts[0]->ID ) ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $posts[0]->ID), 'medium'); //Change made here!!!
$thumb = $thumb[0]; // take the URL from the array
$thumb_set = true;
}
]]>
Warning: Cannot modify header information – headers already sent by (output started at /home/taiwand2/public_html/wp-content/plugins/fix-facebook-like/fix_facebook_like.php:55) in /home/taiwand2/public_html/wp-includes/pluggable.php on line 881
]]>Hi,
I am getting the following error when I try to view any page after activating this plugin. But everything works fine if I deactivate this plugin.
Warning: preg_match() expects parameter 2 to be string, object given in /home/content/57/5175357/html/wp-includes/post-template.php on line 197
Catchable fatal error: Object of class stdClass could not be converted to string in /home/content/57/5175357/html/wp-includes/post-template.php on line 211
Can you please give me a solution for this error ???
Thanks in advance for help
]]><meta property="og:title" content="Title is ok"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://www.domain.com/permalink"/> is ok
<meta property="og:image" content="https://www.domain.com/preset_image"/> Fall back on the preset default image, not pulling any of the Gallery images attached to the custom post.
<meta property="og:site_name" content="Site name is ok"/>
<meta property="fb:admins" content="fb admin is ok"/>
<meta property="og:description" content=" Tweet Similar posts: Post 1, Post 2, etc "/>
If I enbale the “Use post excerpt for description text” its conflicting with another plugin “Better Related Posts and Content” and displaying text such as: Other related posts …which is not the expected post excerpt for that given post.
]]>Since I upgraded to the WP 3.3.1, now only the assigned default thmubnail is showing instead of grabbing the featured image from the custom post
]]>Installed the plugin, but if you add a WP link in a face-comment, wrong thumbs still appear
]]>When activated on my website the text from the excerpt ends up at the top of the header. So at the top of the webpage plain text of the excerpt appears above the website’s layout.
Happens on posts, not on the front index.php page.
I using the Gazette Edition theme from WooThemes with a modified header.php child theme.
]]>There is a problem that will cause a fatal error for any theme that is not using post thumbnails.
At line 205 of your code, you attempt to get the post thumbnail. However, WordPress does not include /wp-incldes/post-thumbnail-template.php
unless the theme is using post thumbnails, thus creating a fatal function not defined error. You need to first determine if the theme supports post thumbnails:
<?php if ( is_home() || is_front_page() ) { ?>
<meta property="og:image" content="<?php echo $logo ?>"/>
<?php } elseif ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $post->ID ) ) { ?>
<meta property="og:image" content="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>"/>
<?php } ?>
Also, you’re not even defining $post
as global within the function, so $post
is empty.
When running in conjunction with WPtouch Pro mobile theme post pages come up blank. The index.php front page is fine but post pages have no content. This can be duplicated if I change the user agent of my desktop browser to Safari 4.1 on iPhone.
Note that I’m running a customized shortcode plugin in conjunction with WPtouch but I don’t think that’s a problem as Facebook Like Thumbnail works and so did just modifying my functions.php theme file to find the proper thumbnail image for Facebook.
]]>I have noticed that the fix-facebook-like plugin does not work well with Simple Press forum plugin. No forum posts are shown if fix-facebook-like is activated.
]]>