homepage Welcome to WebmasterWorld Guest from 54.161.192.130
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Social Media / Facebook Marketing
Forum Library, Charter, Moderators: httpwebwitch & not2easy

Facebook Marketing Forum

    
Facebook, do i have to use XHTML
topr8

WebmasterWorld Senior Member topr8 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4549221 posted 10:03 pm on Feb 26, 2013 (gmt 0)

ok, i've taken the plunge and decided to integrate my sites better with facebook.

first big glaring question though, i can add the open graph metatags to the head of one of my pages no problem...

however i notice on this page: https://developers.facebook.com/docs/opengraphprotocol/

they are adding an extra couple xml namespaces ... do i have to do this, and if i do, does this mean i'm going to have to convert my pages to xhtml, which i'd rather not as they are currently html5 and i'm happy with them.

 

mattur

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4549221 posted 6:16 pm on Feb 28, 2013 (gmt 0)

You don't need to use xhtml to add opengraph metatags, you can add them to html5.

Your link is to an old version of the opengraph syntax. The old version didn't use xhtml either, they just used those namespace declarations as trigger text; and that trigger text is no longer required.

The Like Button page has a opengraph tags generator here (below the button generator):
[developers.facebook.com...]

<meta property="og:title" content="***" />
<meta property="og:type" content="***" />
<meta property="og:url" content="***" />
<meta property="og:image" content="***" />
<meta property="og:site_name" content="***" />
<meta property="fb:admins" content="***" />

And there's a linter for debugging here:
[developers.facebook.com...]

HTH

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Social Media / Facebook Marketing
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved