function fb_graph_fb in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_graph.module \fb_graph_fb()
Implements hook_fb().
Act on ajax event 'fb_graph_publish_action' allowing third parties to use ajax to publish an event. Note FB.api() can also be used to publish events directly to facebook.
File
- ./
fb_graph.module, line 74 - Open Graph Helpers
Code
function fb_graph_fb($op, $data, &$return) {
if ($op == FB_OP_AJAX_EVENT && $data['event_type'] == 'fb_graph_publish_action') {
// As a convenience to third party modules, handle 'fb_graph_publish_action'.
extract($data);
fb_graph_publish_action($event_data['action'], array(
$event_data['object_type'] => $event_data['object_url'],
));
}
}