To call a Graph API method, pass in the endpoint path you wish to retrieve as the first parameter, and other optional parameters as necessary. path: The Graph API path for the request, e.g. "me" for the logged in user's profile. method (optional): Specify the HTTP method for this request: 'GET', 'POST', or 'DELETE'. params (optional): Parameters specific to the particular Graph API method you are calling. Passed in as an associative array of 'name' => 'value' pairs.
$result = $facebook->api($path, $method, $params);