You are here

function fb_base64_url_decode in Drupal for Facebook 7.4

Base64 encoding that doesn't need to be urlencode()ed. Exactly the same as base64_encode except it uses

  • instead of +

_ instead of /

Parameters

String base64UrlEncodeded string:

1 call to fb_base64_url_decode()
fb_parse_signed_request in ./fb.module
Based on https://developers.facebook.com/docs/authentication/signed_request/ (facebook has removed that documentation and not replaced it!)

File

./fb.module, line 1703

Code

function fb_base64_url_decode($input) {
  return base64_decode(strtr($input, '-_', '+/'));
}