Topic-icon Problem with Facebook image

Active Subscriptions:

None
10 years 5 months ago #56377 by m6tech
I am having trouble getting some pages to display the proper image. I have set a default in the opengraph configuration. I have tried to create a custom object which didn't work, so I deleted that and tried to add the tags in the html source of the content. The one I am working on now is an event listing page in civicrm. The title and description are working but the image is not. The debug tool in Facebook is giving me this error:

Object at URL 'freedomcenterofkafrezoo.com/index.php?op...id=477&reset=1&id=29' of type 'article' is invalid because the given value '/images/logo.png' for property 'og:image:url' could not be parsed as type 'url'.

This is the tag as it is in the article:
{SCOpenGraph image=http://freedomcenterofkazoo.com/images/logo.png}

Any help would be appreciated.
The topic has been locked.
Support Specialist
10 years 5 months ago #56385 by mel
Replied by mel on topic Problem with Facebook image
There are two image tags on the page; one of which has an incomplete URL, causing the error:
<meta property="og:image" content="http://freedomcenterofkazoo.com/images/logo.png"/>
<meta property="og:image" content="/images/logo.png"/>
The second one needs to be a full path to the URL. Please double-check that the image path that you've set in the default area is the full path, not relative.

Also, please make sure that your images are big enough. Facebook requires that an image be at least 200px by 200px. If one cannot be found of the appropriate size, Facebook will make a best guess of an image to use.

-Melissa
The topic has been locked.