You are here

function fb_graph_get_tags in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_graph.module \fb_graph_get_tags()

Get the metatag values for the current page.

See also

fb_graph_set_tag()

3 calls to fb_graph_get_tags()
fb_graph_node_view in ./fb_graph.module
Implements hook_node_view() Add reasonable opengraph tags to node pages.
fb_graph_preprocess_page in ./fb_graph.module
Implements hook_preprocess_page().
fb_graph_user_view in ./fb_graph.module
Implements hook_user_view().

File

./fb_graph.module, line 193
Open Graph Helpers

Code

function fb_graph_get_tags($final = FALSE) {
  $tags = fb_graph_set_tag();

  // Allow third parties to alter.
  drupal_alter('fb_graph_tags', $tags, $final);
  if ($final) {

    // Add default tags.
    extract(fb_vars());
    if (isset($fb_app) && !isset($tags['fb:app_id'])) {
      $tags['fb:app_id'] = $fb_app->id;
    }
  }
  return $tags;
}