WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Comments for WordPress
Plugin grabbing random image when liked. (3 posts)

  1. Mezloh
    Member
    Posted 3 years ago #

    I am having issues with this plugin grabbing a twitter icon and posting it to facebook every time someone likes the post or page. How can I get this plugin to grab the post or page image instead of grabbing this twitter icon out of my sidebar?

  2. ILciaranmg
    Member
    Posted 3 years ago #

    Hi Mezloh,

    This isn't really an issue related to the FB comments plugin. You need to define an og:image meta tag in your header so facebook knows which image to pick up when someone comments or likes it.

    This tool will show you how FB sees your pages:
    https://developers.facebook.com/tools/lint/

    This article explains how to enable the og (open graph) meta data for your wordpress site: http://tips4php.net/2010/07/open-graph-enable-your-wordpress-blog/

  3. Sperry77
    Member
    Posted 3 years ago #

    I tried to add all this code - but this is terribly hard for a layperson. Is there a plugin that can do this? I can't get it to work by adding this code to functions and header.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic