WordPress.org

Forums

Facebook Page Publish
Thumbnail problem (8 posts)

  1. cip6791
    Member
    Posted 3 years ago #

    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.

    http://wordpress.org/extend/plugins/facebook-page-publish/

  2. Jon Hardison
    Member
    Posted 3 years ago #

    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.

  3. Cosmin
    Member
    Posted 3 years ago #

    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.

  4. designroom
    Member
    Posted 2 years ago #

    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.

  5. Gluteeny
    Member
    Posted 2 years ago #

    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.

  6. Gluteeny
    Member
    Posted 2 years ago #

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

  7. designroom
    Member
    Posted 2 years ago #

    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 http://wordpress.org/plugins/wpide/screenshots/ within the WP Admin Panel or even by using a code editor application such as Dreamweaver or free alternatives such as Komodo Edit http://www.activestate.com/komodo-edit

    For instructions on how to comment out php code, please take a look at this: http://php.net/manual/en/language.basic-syntax.comments.php

    I hope it helps you.

  8. ronald_123
    Member
    Posted 2 years ago #

    You'd need to comment out:

    add_action('wp_head', 'fpp_head_action');

    and

    function fpp_head_action() {
            global $post;
    
            if (is_object($post) /*&& ($post->post_type == 'post') */ && is_singular()) {
                    fpp_render_meta_tags($post);
            }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Page Publish
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags