Edit preview website image

Discussion in 'BlackHat Lounge' started by dadecotti, Jun 4, 2012.

  1. dadecotti

    dadecotti Senior Member

    Joined:
    Dec 13, 2008
    Messages:
    903
    Likes Received:
    35
    When you write a website on Facebook it will show a picture on the left side, which HTML code I have to edit in order to change this image?
    This codice must be in the index.html file in the main folder of the website right?
     
  2. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,926
    Likes Received:
    8,938
    Occupation:
    Full time IM
    Location:
    Heavy in the game
  3. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,943
    Occupation:
    Design director
    Location:
    Paris (France)
    Here is the code I use and it works perfectly with Facebook :
    HTML:
    <link rel="image_src" href="image.gif" />
    Beny
     
    Last edited: Jun 4, 2012
  4. dadecotti

    dadecotti Senior Member

    Joined:
    Dec 13, 2008
    Messages:
    903
    Likes Received:
    35
    Thank you very much both, Facebook cache the picture, you catched the problem!

    My index is HTML and not PHP, it is fine anyway?
     
  5. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,926
    Likes Received:
    8,938
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    index.html?1

    that will fix it, if you need to change it again, just change the value after the ?

    index.html?anything