A simple Open Graph Protocol parser and add Open Graph metadata to pages for Yii.
- Extract the release file under protected/extensions.
- Add to your config file:
-
in import section: ... 'application.extensions.OpenGraph.*', ...
-
in components section: ... 'openGraphNode' => array( 'class' => 'application.extensions.OpenGraph.phaOpenGraphNode' ), ...
Now you can create new node of openGraph:
$node = Yii::app()->getComponent('openGraphNode');
Vadim Kruchkov long@phargo.net.
Choose your favourite of:
Thanks for sharing!