2017-03-14, 12:24 AM
2017-03-14, 03:01 AM
headerinclude template is the best place to include og:image tag.
Regards
WallBB
Regards
WallBB
2017-03-14, 11:26 PM
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
<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.