@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | // Get access token from session |
9 | 9 | $accessToken = $_SESSION['fb_access_token']; |
10 | 10 | //header('location:member.php'); |
11 | -}else{ |
|
11 | +} else{ |
|
12 | 12 | $appId='362540437809242'; |
13 | 13 | $appSecret='538cd04f971479ff14dc409df2fbcf3b'; |
14 | 14 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | if(isset($_SESSION['user']) && isset($_SESSION['fb_access_token'])){ |
97 | 97 | header('Location:member.php'); |
98 | -}else{ |
|
98 | +} else{ |
|
99 | 99 | header('Location:index.php'); |
100 | 100 | } |
101 | 101 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | // Get access token from session |
10 | 10 | $accessToken = $_SESSION['fb_access_token']; |
11 | 11 | header('Location:fb-callback.php'); |
12 | -}else{ |
|
12 | +} else{ |
|
13 | 13 | $fb = new Facebook\Facebook([ |
14 | 14 | 'app_id' => '362540437809242', // my facebook app id |
15 | 15 | 'app_secret' => '538cd04f971479ff14dc409df2fbcf3b', |