1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Huge Facebook Share Button?

Discussion in 'General Programming Chat' started by wyattjozwowski, Apr 11, 2014.

  1. wyattjozwowski

    wyattjozwowski Regular Member

    Joined:
    Jan 25, 2013
    Messages:
    347
    Likes Received:
    411
    Occupation:
    Entrepreneur
    Location:
    Georgia
    Home Page:
    Hey Guys,

    So I'm currently using this code for a big Facebook share button:

    <center><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo(urlencode(get_permalink( $id ))); ?>" target="_blank"><img src="Facebook Button Image URL"></a></center>

    And it works and looks good.

    There is only one problem. It's grabbing an image from the post to use as the image when shared on Facebook, but I want a share button that uses the 'Featured image" So I can control how it looks in the newsfeed

    Any suggestions?
     
  2. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    You haveto go to your <head> section and edit your
    <meta property="og:image" content="">


    Tag and put the featured image inside content. Might not be a "simple job" if you are using wordpress.

     
  3. thewierdkid

    thewierdkid Newbie

    Joined:
    Mar 27, 2014
    Messages:
    38
    Likes Received:
    16
    Google: fb link debug

    You can use op:properties to control the facebook thumbnail as you want.

    edit: Sry for low info buti'm on android
     
  4. CoolAdvisor

    CoolAdvisor Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 24, 2008
    Messages:
    977
    Likes Received:
    360