Conversation
review · 1 starsI am working to fix this problem for 3 days. Finally I found what messed my Facebook post image size when sharing. It adds 150×150 og:image meta and other meta to site and I can’t find how to switch it off. *** UPDATE *** After several months, tried it again. Still og:image is added. Have to disable it.
Hi Ghelle, In order to delete og:image, so that the image will not be added, please edit facebook-button-plugin.php file, which is located in wp-content/plugins/facebook-button-plugin. In facebook-button-plugin.php file, please substitute (comment) the lines 715-718: if ( has_post_thumbnail( get_the_ID() ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail'); $image = $image[0]; } to // if ( has_post_thumbnail( get_the_ID() ) ) { // $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail'); // $image = $image[0]; // } However, please note that these changes will be removed next time you update the plugin. Regards, BestWebSoft Support Team.
Hi Ghelle, In order to delete og:image, so that the image will not be added, please edit facebook-button-plugin.php file, which is located in wp-content/plugins/facebook-button-plugin. In facebook-button-plugin.php file, please substitute (comment) the lines 715-718: if ( has_post_thumbnail( get_the_ID() ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail'); $image = $image[0]; } to // if ( has_post_thumbnail( get_the_ID() ) ) { // $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail'); // $image = $image[0]; // } However, please note that these changes will be removed next time you update the plugin. Regards, BestWebSoft Support Team.