Open Graph for ez Publish


/ Published in: eZ Publish
Save to your folder(s)

logo_fb.png should be at least 50x50px and have a maximum aspect ratio of 3:1


Copy this code and paste it in your HTML
  1. <html xmlns="http://www.w3.org/1999/xhtml"
  2. xmlns:og="http://ogp.me/ns#"
  3. xmlns:fb="http://www.facebook.com/2008/fbml"
  4. xml:lang="{$site.http_equiv.Content-language|wash}" lang="{$site.http_equiv.Content-language|wash}">
  5. ...
  6. <meta property="og:title" content="{ezini('SiteSettings','SiteName', 'site.ini')|wash}" />
  7. <meta property="og:type" content="book" />
  8. <meta property="og:url" content="http://www.foo.no{$requested_uri_string|ezroot('no')}" />
  9. <meta property="og:image" content="http://www.foo.no{'logo_fb.png'|ezimage(no)}" />
  10. </head>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.