Dynamic Facebook Open Graph Meta tags - How add prefix to tag?

Go To StackoverFlow.com


I am using DotNetNuke content management system and am creating a custom module for it. I want to dynamically generate and write out the open graph meta tags to the <head> section. That part I can accomplish, but now I need to add the "prefix" portion of the <head> tag, i.e. to look like this:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns# YOUR_NAMESPACE: http://ogp.me/ns/apps/YOUR_NAMESPACE#"> 

How do you programmatically do this?

2012-04-03 22:11
by Chad Richardson
Got it: Page.Header.Attributes.Add("prefix", "og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# thedynoroom: http://ogp.me/ns/fb/thedynoroom#" - Chad Richardson 2012-04-04 01:20


Got it: Page.Header.Attributes.Add("prefix", "og: ogp.me/ns# fb: ogp.me/ns/fb# thedynoroom: ogp.me/ns/fb/thedynoroom#";)

2012-05-24 06:57
by Chad Richardson