*

Recent

Author Topic: Facebook Links  (Read 2351 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Facebook Links
« on: October 21, 2011, 09:28:25 PM »
Trying to figure out how to get the correct image to the link im posting on my facebook page.

This is FB basic code
Code: [Select]
<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="thumbnail_image" />

FB should read it like this
Code: [Select]
<meta name=”title” content=”Halloween Tiles” />
<meta name=”description” content=”Classic Tile Game with a Halloween Theme” />
<meta property="og:image" content="http://www.halloweenarcadegames.com//arcade/pics/HalloweenTilesV32PC.gif” / >

So the could should be like???
Code: [Select]
<meta property="og:title" content="<?php echo '.$r['name'].';?>" />
<meta property="og:description" content="<?php echo '.$r['description'].';?>" />
<meta property="og:image" content="<?php echo '.$domain.'/'.$gamesfolder.'/'.$r['file'].'\';?>" />

Have any ideas what im doing wrong?

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Facebook Links
« Reply #1 on: October 21, 2011, 09:57:35 PM »
Code: [Select]
<meta property="og:title" content="<?php echo $r['name']; ?>" />
<meta property="og:description" content="<?php echo $r['description']; ?>" />
<meta property="og:image" content="<?php echo "$domain/$gamesfolder/".$r['file'].""?>" />

That fix it?

Also.. turn error reporting on when you're editing things
Code: [Select]
ini_set('display_errors', "On");