Gazley Posted October 1, 2015 Posted October 1, 2015 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.
Gazley Posted October 1, 2015 Author Posted October 1, 2015 Ah, just found this: https://developers.facebook.com/docs/reference/opengraph/object-type/website/ Seems to suggest that these declarations be specified in the <head> element. However, ProCache in HTML minification mode strips out the <head> element. Any thoughts? Cheers!
LostKobrakai Posted October 1, 2015 Posted October 1, 2015 If ProCache is still stripping out the head I would consider that a bug. An element with attribute should never be stripped, if it's content is not the default content (e.g. <input type="text"> == <input>). 1
Gazley Posted October 1, 2015 Author Posted October 1, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now