No image when posting link in FB.

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.

No image when posting link in FB.

Postby chainmailbikini on Sun Sep 16, 2012 11:58 pm

So I've become annoyed that when I post a link to my site in Facebook an image is not included with the it. I did a little research and found out about open graph tags that are supposed to help with this sort of problem and have tried to implement them to no avail. If anyone knows how to fix this, I'd be glad to know. Here's the code I'm using now:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head><title>***comic_name*** - ***todays_date***</title>
<meta property="og:title" content="Chainmail Bikini"/>
<meta property="og:type" content="Web Comic"/>
<meta property="og:url" content="http://chainmailbikini.comicgenesis.com"/>
<meta property="og:image" content="http://i288.photobucket.com/albums/ll188/jayemkay22/og.jpg"/>
<meta property="og:site_name" content="Chainmail Bikini"/>
<meta property="fb:admins" content="Jason Kerr"/>
<meta property="og:description"
content="Chainmail Bikini is a fantasy tale about an adventuring company and their quests in a land filled with magic and mystery."/>
User avatar
chainmailbikini
Regular Poster
 
Posts: 60
Joined: Tue Jul 03, 2012 3:52 am
Location: KY - USA

Re: No image when posting link in FB.

Postby LibertyCabbage on Mon Sep 17, 2012 6:17 am

From http://alilknowhow.com/2011/01/09/worki ... hare-link/ :

"If you have fixed everything and it still doesn’t show, that is because you have already attempted to share the link previously, and facebook caches the thumbnails server side when you share a link. So if you share it again, rather than download the new thumbnail, facebook calls up it’s saved thumbnail from its own cache.

Solution: Share the same link but slightly different. [...] If you are just using plain old HTML, try directing straight to your index page by changing the link to http://example.com/index.html rather than http://example.com/ ."

You can apparently also go to https://developers.facebook.com/tools/debug to clear your old thumbnail from Facebook's cache instead of changing the URL.
ImageImage
"Seems like the only comics that would be good to this person are super action crazy lines, mega poses!"
User avatar
LibertyCabbage
Cartoon Hero
 
Posts: 4583
Joined: Tue Jan 25, 2005 4:08 pm
Location: bat country

Re: No image when posting link in FB.

Postby chainmailbikini on Mon Sep 17, 2012 7:10 am

Thanks LC, that did the trick.
User avatar
chainmailbikini
Regular Poster
 
Posts: 60
Joined: Tue Jul 03, 2012 3:52 am
Location: KY - USA


 

Return to Help Center



Who is online

Users browsing this forum: No registered users and 0 guests

cron