MyBB Community Forums

Full Version: Facebook preview image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Which is the correct page on myBB to edit to include the og:image statement to force FB to use my choice of web preview image?
headerinclude template is the best place to include og:image tag.

Regards
WallBB
OK, so I added

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta property=”og:image” content=”http://festivalcrew.org/images/FB_Preview.png” />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1810"></script>

to the headerinclude template (Ungrouped Templates)  and now the Facebook Dev debugger tells me this:

Warnings That Should Be Fixed
  • Indicates that a URL property has whitespace characters, which is not allowed.
    URL 'http://www.festivalcrew.org/" + spinner_image +"' for property 'og:image:url' of the object at 'http://www.festivalcrew.org/' is invalid because it contains whitespace characters.
  • Inferred Property
    The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Where am I going wrong?