Jump to content

Facebook OG Namespace Declaration question


Gazley
 Share

Recommended Posts

Hi there,

At http://ogp.me/# it shows the following "og" namespace definition in the html element.

<html prefix="og: http://ogp.me/ns#">

If I want to specify the Facebook App Id, I also need to define the "fb" namespace too. However, I can't see any definite HTML5 based example of how to do this. So, I think the following should be OK but would appreciate any advice around this:

<html lang="en-GB" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" >

Sorry about the bizarre colours! :)

Thanks.

Link to comment
Share on other sites

This is the error message I get with the attributes on the <head> element and it works OK without any attributes.

Warning: preg_replace(): Compilation failed: missing ) at offset 17 in /Applications/MAMP/htdocs/iconic/ProcessWire/site/modules/ProCache/ProCache.module on line 1065

If I put these attributes on the <html> element, the page generates OK although I don't know whether this is suboptimal so far as Facebook is concerned.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...