You are here

function hook_fboauth_deauthorize in Facebook OAuth (FBOAuth) 7.2

Same name and namespace in other branches
  1. 6 fboauth.api.php \hook_fboauth_deauthorize()
  2. 7 fboauth.api.php \hook_fboauth_deauthorize()

Hook to respond to a deauthorization event from Facebook.

This hook will fire if the Facebook app has configured the deauthorize callback option on facebook.com. If your site were hosted at example.com, this URL should be configured to be http://example.com/fboauth/deauthorize.

Parameters

$uid: A Drupal user UID.

$fbid: The Facebook user account ID that requested the deauthorization.

Return value

None.

2 invocations of hook_fboauth_deauthorize()
fboauth_action_deauth in includes/fboauth.fboauth.inc
Facebook OAuth callback for deauthorizing the site from Facebook.
fboauth_deauthorize in includes/fboauth.fboauth.inc
Process a deauthorization request from Facebook.

File

./fboauth.api.php, line 190
This file contains API documentation for the Facebook OAuth module. Note that all of this code is merely for example purposes, it is never executed when using the Facebook OAuth module.

Code

function hook_fboauth_deauthorize($uid, $fbid) {
  watchdog('fboauth', 'hook_fboauth_deauthorize called with uid = !uid and fbid = !fbid', array(
    '!uid' => $uid,
    '!fbid' => $fbid,
  ));
}