FaceBook like error
- by user1150440
I am using the following code in Page_Load
Dim metaTagDesc As New HtmlMeta() 'Create a new instance of META tag object
Dim metaTagKeywords As New HtmlMeta()
Dim metaTagKeywords1 As New HtmlMeta()
Dim metaTagKeywords2 As New HtmlMeta()
metaTagDesc.Attributes.Add("property", "og:title") ' Add attributes to the META tag object for identification
metaTagDesc.Attributes.Add("content", _table.Rows(0).Item(2))
metaTagKeywords.Attributes.Add("property", "og:type")
metaTagKeywords.Attributes.Add("content", "website")
metaTagKeywords1.Attributes.Add("property", "og:url")
metaTagKeywords1.Attributes.Add("content", "http://citizen.tricedeals.com/Reports/" & _table.Rows(0).Item(0))
metaTagKeywords2.Attributes.Add("property", "og:image")
metaTagKeywords2.Attributes.Add("content", "http://citizen.tricedeals.com/ProfilePictures/" & _table.Rows(0).Item(1) & ".jpg")
Page.Header.Controls.Add(metaTagDesc)
Page.Header.Controls.Add(metaTagKeywords)
Page.Header.Controls.Add(metaTagKeywords1)
Page.Header.Controls.Add(metaTagKeywords2)
But i keep getting this error..."Your og:type object name has disallowed characters in it. It must match [a-z][a-z0-9._]*"
Why?