Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I was having this problem as well. I checked a few other plugins that did something similar and noticed that if you open the class-public.php file in this plugin’s “includes” directory and change this line:

    <img class="rfbp-image" src="<?php echo esc_attr($p['image'] . '?type=' . $opts['img_size']); ?>" style="max-width: <?php echo $max_img_width; ?>; max-height: <?php echo $max_img_height; ?>" alt="" />

    to:

    <img class="rfbp-image" src="<?php echo esc_attr($p['image']); ?>" style="max-width: <?php echo $max_img_width; ?>; max-height: <?php echo $max_img_height; ?>" alt="" />

    It starts displaying video small thumbnails. Not sure if removing that bit of code is a good fix, but it’s passable for my purposes.

    Not sure if this is a good fix, but if you change this line in includes, class-public.php you can get a small preview for YouTube links.

    Line 236:
    <img class="rfbp-image" src="<?php echo esc_attr($p['image'] . '?type=' . $opts['img_size']); ?>" style="max-width: <?php echo $max_img_width; ?>; max-height: <?php echo $max_img_height; ?>" alt="" />

    to:
    <img class="rfbp-image" src="<?php echo esc_attr($p['image']); ?>" style="max-width: <?php echo $max_img_width; ?>; max-height: <?php echo $max_img_height; ?>" alt="" />

    Just removing that one bit of code seems to give you a small image.

    I’m trying to fix this as well. Just out of curiosity I installed a few other facebook widgets to see if they could clue me in to a solution. I noticed that the ones that show external preview images end in:

    maxresdefault.jpg

    This widget seems to be requesting everything in the same way right up to the end, which is:

    maxresdefault.jpg?type=normal

    Removing the “?type=normal” while inspecting in Chrome fixes it, I am just not sure how to incorporate this fix into the actual output. Will keep looking into this.

Viewing 3 replies - 1 through 3 (of 3 total)