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:
    412
    Occupation:
    Entrepreneur
    Location:
    Georgia
    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 Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,931
    Likes Received:
    3,442
    Gender:
    Male
    Occupation:
    Dreaming
    Location:
    Pale Blue Dot
    Home Page:
    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 Senior Member

    Joined:
    Mar 24, 2008
    Messages:
    1,170
    Likes Received:
    455