You are here

function fboauth_action_invoke in Facebook OAuth (FBOAuth) 7

Same name and namespace in other branches
  1. 6 includes/fboauth.fboauth.inc \fboauth_action_invoke()
  2. 7.2 includes/fboauth.fboauth.inc \fboauth_action_invoke()

Invoke an action specified through hook_fboauth_action_info().

1 call to fboauth_action_invoke()
fboauth_action_page in includes/fboauth.fboauth.inc
Menu callback; The main page for processing OAuth login transactions.

File

includes/fboauth.fboauth.inc, line 64
Provides functions used during Facebook login processes.

Code

function fboauth_action_invoke($action_name, $app_id, $access_token) {
  $action = fboauth_action_load($action_name);

  // Call the specified action.
  if (isset($action['callback'])) {
    $callback = $action['callback'];
    if (function_exists($callback)) {
      return $callback($app_id, $access_token);
    }
  }
}