You are here

function fb_auth_redirect_uri in Drupal for Facebook 7.4

The auth process requires a redirect_uri which must be identical when it is passed to facebook two times.

TODO: simplify the parameters to make calling this easier.

4 calls to fb_auth_redirect_uri()
fb_auth_get_token in ./fb.module
When user returns from fb_auth process, $_REQUEST might contain token details.
fb_client_auth_url in ./fb.module
Produce a client side auth URL as described in https://developers.facebook.com/docs/authentication/client-side/
fb_remote_auth_url in ./fb.module
fb_server_auth_url in ./fb.module
Build a URL where a user can be sent to authorize a facebook app and afterwards get an access_token. Uses facebook's server-side auth mechanism.

File

./fb.module, line 1055

Code

function fb_auth_redirect_uri($path = NULL, $options = array()) {
  if (!$path) {
    $path = current_path();
  }
  $options = $options + array(
    'absolute' => TRUE,
  );
  $uri = url(current_path(), $options);
  return $uri;
}