When opengraph_meta_nodeapi() is called with the load op, the node's meta data is supposed to be loaded via load_node_data(). However the call to get_og_tag_defaults() in load_node_data() is never passed the current node. The opengraph_meta array in the $node is not properly populated until after opengraph_meta_nodeapi() is called with the view op.
public function load_node_data($node) {
$fields = $this->get_og_tag_defaults();
// rest of function...
}
should be
public function load_node_data($node) {
$fields = $this->get_og_tag_defaults($node);
// rest of function...
}
Comments
Comment #1
torotil commentedHi,
I'm the new maintainer of opengraph_meta. Sorry for the long silence in the issue queue.
Sadly I don't have the resources to care for the Drupal 6 version. Unless and until someone steps up to maintain it I'm therefore closing all D6 issues as WONTFIX.
Feel free to re-open the issue if it is still valid in one of the Drupal 7 branches.
Thanks!