SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facebook SHARE Button NOT choosing the correct default image to display!

    http://www.therundown.tv/videos/wtf-...s-lame-excuse/

    In this link example, you will see the Facebook/Twitter share buttons on the upper, left-side. When you attempt to share this page to your Facebook friends, by default, it shows a random image on the page, when IT SHOULD be showing the post avatar of the bicycle wheel.

    How can we modify the script to capture this bicycle wheel avatar by default?

  2. #2
    SitePoint Member
    Join Date
    Aug 2005
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This might help you.

    http://www.wpbeginner.com/wp-themes/...t-on-facebook/

    Code:
    <meta property="og:image" content="http://example.com/image.jpg"/>

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the information but the code used to pull the avatars is the following:

    <?php if (function_exists('gkl_postavatar')) gkl_postavatar('', '', ''); ?>

    How can this be done correctly using that meta code since it's not a static jpg url for this?

  4. #4
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone??

    We have placed the property="og:image" tag on that link page, near the avatar image but the issue still persists. You can check the source code on that page to see.

    What do we do now? Facebook is not selecting the proper image.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •