habari-extras / metaseo

PLUGIN: Adds search engine optimizations to the page head.
http://habariproject.org
1 stars 1 forks source link

Open Graph Protocol enhancement? #1

Open mmynsted opened 11 years ago

mmynsted commented 11 years ago

It would be really cool if this could be made to also populate the Open Graph Protocol meta tags used by facebook. The habari-extras/share plugin had this defined in its share_metadata.php file. It looked like the following.

<meta property="og:title" content="<?php echo $post->title; ?>"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="<?php echo $post->permalink; ?>"/>
<meta property="og:site_name" content="<?php Options::out('title'); ?>"/>
<meta property="fb:admins" content="<?php Options::out('share__fb_admins'); ?>"/>
<meta property="og:description" content="<?php $theme->get_post_description($post); ?>"/>

Seems possible (for somebody familiar with this plugin code) to change the dynamic content to the same kind of data used for the traditional SEO tags. Then one could create an article and have the same improved metadata used for both SEO and for facebook links.

miklb commented 10 years ago

I see that challenge and accept!

mmynsted commented 10 years ago

:-)