FBOauth: how to pass arguments to the callback function?
I modified the fboauth_action_menu() to make it accept arguments:

function fboauth_menu() {
  $items['fboauth/%fboauth_action/%/%'] = array(
    'title' =&gt; 'Facebook connect',
    'page callback' =&gt; 'fboauth_action_page',
    'page arguments' =&gt; array(1, 'foo', 'foo'),
    'access callback' =&gt; TRUE,
    'file' =&gt; 'includes/fboauth.fboauth.inc',
    'type' =&gt; MENU_CALLBACK,
  );
  return $items;
}


But then I had another problem with the function fboauth_action_page()it executed because it called the another function to get the access token because the two redirect_uri parameters were not the same between the code request to FB and the access token. All this, because the function to get the access token was not taking into account the parameters.

function fboauth_access_token($code, $action_name, $app_id = NULL, $app_secret = NULL) {
  $app_id = isset($app_id) ? $app_id : variable_get('fboauth_id', '');
  $app_secret = isset($app_secret) ? $app_secret : variable_get('fboauth_secret', '');

  // get the parameters from the redirect_uri by the drupal function arg() and includes them in the redirect_uri to get the access token.
  $query = array(
    'client_id' =&gt; $app_id,
    'client_secret' =&gt; $app_secret,
    'redirect_uri' =&gt; fboauth_action_url('fboauth/' . $action_name . "/" . arg(2) . "/" . arg(3) . "/", array('absolute' =&gt; TRUE, 'query' =&gt; !empty($_GET['destination']) ? array('destination' =&gt; $_GET['destination']) : array())),
    'code' =&gt; $code,
  );

// rest of the function

}


Now, both redirect_uri are the same and my callback function defined earlier must also catch parameters from the url:

function fb_event_create_fboauth_action_event_create($app_id, $access_token) {
    $event_name = arg(2);
    $event_start_date = arg(3);

    $result = fboauth_graph_query("EVENT_ID/events", $access_token, array("name" =&gt; $event_name, "start_time" =&gt; $event_start_date), 'POST');

}


Hope this helps someone!