Forum

HomeHomeCoreCoreGeneralGeneralBuild your own ExtensionsBuild your own Extensions
Previous
 
Next
New Post
3/21/2014 5:13 AM
 

Hi Kevin,

 

    thanks for your amazing work with ows. I need to build a custom action for facebook og tag. I found an example here:

 

http://www.openwebstudio.com/Resource...

 

 

The date goes back to 2008, it is still a good example?

Do you have any examples or article or anything that can help me figure out how to create the custom action.

 

 

Thanks a lot
Matteo

New Post
3/21/2014 7:56 AM
 

It is, however, I don't think you actually need to change anything. I assign the Facebook tags on our website (Since1910.com) to provide full link representation (images, video, etc..). You can see it in the headers here: Product View. If you view the source of that page, and review the headers. You will see the following header tags, each of which is written from OWS:


<link rel="canonical" href="http://www.since1910.com/tacori-2620rdp-halo-engagement-ring-with-pave-set-diamonds" />

<meta name="og:Title" content="Tacori Halo Engagement Ring w/ Pave Set Diamonds" />

<meta name="og:description" content="This stunning engagement ring setting is hand made by Tacori and features round brilliant pave-set diamonds around the center diamond as well as on the shoulders of the band." />

<meta name="og:image" content="http://www.since1910.com/images/products/tacori-halo-engagement-ring-with-pave-set-diamonds-2620rdp-1-C.png" />

<meta name="og:video" content="http://www.youtube.com/v/BmkhMoCuboc" />

<meta name="og:video:type" content="application/x-shockwave-flash" />

<meta name="og:video:width" content="800" />

<meta name="og:video:height" content="600" />


All of these tokens are working properly from Facebook.


The OWS is very straight forward here - simply use an Assignment action and set the Name to Page.Meta.METANAME. Then set the value to whatever goes in the content attribute. The tokens I am assigning are:

Page.Meta.og:Title

Page.Meta.og:description

Page.Meta.og:image

Page.Meta.og:video

Page.Meta.og:video:type

Page.Meta.og:video:width

Page.Meta.og:video:height


Is there a different reason why you need to create an additional plugin for this??





Kevin M Schreiner
Open Web Studio
PayPal - The safer, easier way to pay online!
New Post
3/21/2014 8:53 AM
 

Thanks kevin,

     but facebook uses Open Graf protocol (http://ogp.me/) that use property and not name as tag-atribute

 

Correct:

property="og:title" content="Facebook Open Graph META Tags"/>

Not correct:

name="og:title" content="Facebook Open Graph META Tags"/>


This is what the Italian agency seo expert with whom we are communicating is telling to us.
Thats why I can not use your suggest.

Matteo
New Post
3/21/2014 11:47 AM
 
oh - okay. Well - good news! When the Page.Meta name contains a javascript object, it converts the name/value pairs to attribute/value pairs!


Instead of Page.Meta.og:Title (et al), you can do this: Page.Meta.{"property":"og:Title"}

That would produce:

<meta property="og:Title" content="whatever the value is" />


OR if you need more attributes (like name AND property)


Page.Meta.{"property":"og:Title","name":"og:Title"}

That would produce:

<meta name="og:Title" property="og:Title" content="whatever the value is" />



Kevin M Schreiner
Open Web Studio
PayPal - The safer, easier way to pay online!
New Post
3/22/2014 5:53 AM
 

GOOD NEWS!

Thanks a lot kevin.

 

You must come to DNN-connect event! (DNN Europe event)
Site: dnn-connect
Event description:  click here

You should take take a speech let me know what you think.
thanks

Matteo


Previous
 
Next
HomeHomeCoreCoreGeneralGeneralBuild your own ExtensionsBuild your own Extensions


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share