Support » Plugin: Facebook Page Publish » [Plugin: Facebook Page Publish] Thumbnail problem

  • Hello,

    I just installed this plugin and it works great except for the thumbnail on Facebook when adding a new post. I got this in the header:

    <meta property="og:image" content="<?php if (function_exists('wp_get_attachment_thumb_url')) {echo wp_get_attachment_thumb_url(get_post_thumbnail_id($post->ID)); }?>" />

    and if I manually add a post to Facebook after posting it on my blog, it works. I was wondering if I can get some advice on how to fix the thumbnail.

Viewing 7 replies - 1 through 7 (of 7 total)
  • My cure-all for almost every problem folks are having with this plug-in is to be sure your FB app has ‘Remove offline_access permission’ disabled in advanced settings. Once I changed that everything, including thumbnails started working. Hope it helps.

    If you take a look at your source code, you will see this plugin is actually adding the Facebook meta tags on its own, without asking you if you want it to do so or not.

    This needs to be an option, not something you have to search for and disable in plugin files.

    Don’t know if the author plans to have meta tags as an option, so here’s a quick fix:

    – open /wp-content/plugins/facebook-page-publish/fpp_index.php
    – comment out lines 105 and 118 to 124

    This removes the function that prints the meta tags to your wp_head.

    I had a problem related to this myself, on a personal site: Facebook will not show preview images of pages shared if the image file name or location have spaces in them. I added my own meta tags, doing a str_replace() on the thumbnail URL (replacing spaces with %20 ), but this plugin was printing them after mine, so it didn’t work. Found the issue using Facebook’s Debugger.

    Thanks Cosmin for the tip! it helped me a lot because I use Wonderm00n’s Simple Facebook Open Graph Tags Plugin to generate my custom Facebook meta tags and Facebook Page Publish Plugin was inserting the meta tags by itself which was causing conflicts with Facebook open graph.

    Doing as instructed here

    – open /wp-content/plugins/facebook-page-publish/fpp_index.php
    – comment out lines 105 and 118 to 124

    Solved my problem.

    Can someone post the actual lines that need to be deleted instead of just the line numbers? I’m new to this and don’t want to be deleting out the wrong stuff. Please help cause this issue has been driving me nuts for weeks now. Seems like an easy fix as long as I am sure that I’m deleting the correct lines…. thanks.

    Can someone PLEASE tell me how to find which is line 105 and then 118 to 124? I need to correct this problem.

    Hi Gluteemy,

    In order to identify those line numbers in the code you should edit the file with the help of a plugin such WPide within the WP Admin Panel or even by using a code editor application such as Dreamweaver or free alternatives such as Komodo Edit

    For instructions on how to comment out php code, please take a look at this:

    I hope it helps you.

    You’d need to comment out:

    add_action('wp_head', 'fpp_head_action');


    function fpp_head_action() {
            global $post;
            if (is_object($post) /*&& ($post->post_type == 'post') */ && is_singular()) {
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Facebook Page Publish] Thumbnail problem’ is closed to new replies.