This is a modular extension for graphiques-digitale/silverstripe-seo-metadata
It enables Facebook Domain Insights i.e. fb:app_id
and fb:admins
It requires:
It is intended to be used alongside it's siblings:
These are all optional and fragmented from the alpha version SSSEO
, which is now redundant.
composer require graphiques-digitale/silverstripe-seo-facebook-domain-insights
- rebuild using
/dev/build/?flush
- Place the extracted folder
silverstripe-seo-facebook-domain-insights-{version}
intosilverstripe-seo-facebook-domain-insights
in the SilverStripe webroot - rebuild using
/dev/build/?flush
The Facebook App ID is set globally via /admin/settings/
under the Metadata tab.
Facebook Admins are added by adding Members
/users to the at the same location above.
Admin IDs are set against the actual users on their /admin/security/
page.
Depending on your configuration, the general idea is to replace all header content relating to metadata with $Metadata()
just below the opening <head>
tag and $BaseHref()
function, e.g.:
<head>
<% base_tag %>
$Metadata()
<!-- further includes ~ viewport, etc. -->
</head>
This will output something along the lines of:
<head>
<base href="http://dev.seo.silverstripe.org/"><!--[if lte IE 6]></base><![endif]-->
<!-- SEO -->
<!-- Metadata -->
<meta charset="UTF-8" />
<link rel="canonical" href="http://dev.seo.silverstripe.org/" />
<title>Your Site Name | Home - your tagline here</title>
<meta name="description" content="Welcome to SilverStripe! This is the default home page. You can edit this page by opening the CMS. You can now access the developer documentation, or begin the tutorials." />
<!-- Facebook Insights -->
<meta property="fb:app_id" content="FacebookAppID123" />
<meta property="fb:admins" content="AuthorFacebookProfileID123" />
<!-- END SEO -->
<!-- further includes ~ viewport, etc. -->
</head>
Issues are tracked on GitHub @ Issue Tracker
Please get in touch @ [email protected]
if you have any extertise in any of these SEO module's areas and would like to help ~ they're a lot to maintain.
BSD-3-Clause license
See @ Why BSD?