public/old/fb-callback.php 1 location
|
@@ 37-49 (lines=13) @@
|
| 34 |
|
exit; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
if (!isset($accessToken)) { |
| 38 |
|
if ($helper->getError()) { |
| 39 |
|
header('HTTP/1.0 401 Unauthorized'); |
| 40 |
|
echo 'Error: '.$helper->getError()."\n"; |
| 41 |
|
echo 'Error Code: '.$helper->getErrorCode()."\n"; |
| 42 |
|
echo 'Error Reason: '.$helper->getErrorReason()."\n"; |
| 43 |
|
echo 'Error Description: '.$helper->getErrorDescription()."\n"; |
| 44 |
|
} else { |
| 45 |
|
header('HTTP/1.0 400 Bad Request'); |
| 46 |
|
echo 'Bad request'; |
| 47 |
|
} |
| 48 |
|
exit; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
// The OAuth 2.0 client handler helps us manage access tokens |
| 52 |
|
$oAuth2Client = $fb->getOAuth2Client(); |
public/old/includes/functions.facebook.php 1 location
|
@@ 49-61 (lines=13) @@
|
| 46 |
|
exit; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
if (!isset($accessToken)) { |
| 50 |
|
if ($helper->getError()) { |
| 51 |
|
header('HTTP/1.0 401 Unauthorized'); |
| 52 |
|
echo 'Error: '.$helper->getError()."\n"; |
| 53 |
|
echo 'Error Code: '.$helper->getErrorCode()."\n"; |
| 54 |
|
echo 'Error Reason: '.$helper->getErrorReason()."\n"; |
| 55 |
|
echo 'Error Description: '.$helper->getErrorDescription()."\n"; |
| 56 |
|
} else { |
| 57 |
|
header('HTTP/1.0 400 Bad Request'); |
| 58 |
|
echo 'Bad request'; |
| 59 |
|
} |
| 60 |
|
exit; |
| 61 |
|
} |
| 62 |
|
// The OAuth 2.0 client handler helps us manage access tokens |
| 63 |
|
$oAuth2Client = $fb->getOAuth2Client(); |
| 64 |
|
|
src/classes/AuthProvider/Callback/FacebookAuth.php 1 location
|
@@ 69-82 (lines=14) @@
|
| 66 |
|
return false; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (!isset($accessToken)) { |
| 70 |
|
if ($helper->getError()) { |
| 71 |
|
header('HTTP/1.0 401 Unauthorized'); |
| 72 |
|
echo 'Error: '.$helper->getError()."\n"; |
| 73 |
|
echo 'Error Code: '.$helper->getErrorCode()."\n"; |
| 74 |
|
echo 'Error Reason: '.$helper->getErrorReason()."\n"; |
| 75 |
|
echo 'Error Description: '.$helper->getErrorDescription()."\n"; |
| 76 |
|
} else { |
| 77 |
|
header('HTTP/1.0 400 Bad Request'); |
| 78 |
|
echo 'Bad request'; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
return false; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
// The OAuth 2.0 client handler helps us manage access tokens |
| 85 |
|
$oAuth2Client = $this->facebook->getOAuth2Client(); |