1 | <?php |
||
2 | session_start(); |
||
3 | <<<<<<< HEAD |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
4 | require_once 'appconfig.php'; |
||
5 | |||
6 | $fb = new Facebook\Facebook([ |
||
7 | 'app_id' => $appId, // variable with Facebook App ID |
||
8 | 'app_secret' => $appSecret, |
||
9 | 'default_graph_version' => 'v3.3', |
||
10 | ]); |
||
11 | $helper = $fb->getRedirectLoginHelper(); |
||
12 | $permissions = ['email','user_photos','user_videos','user_posts','user_link','user_status','user_link']; // Optional permissions |
||
13 | $loginUrl = $helper->getLoginUrl($CallbackUrl,$permissions); |
||
14 | ======= |
||
15 | require_once 'appconfig.php'; |
||
16 | |||
17 | $fb = new Facebook\Facebook([ |
||
18 | 'app_id' => $appId, |
||
19 | 'app_secret' => $appSecret, |
||
20 | 'default_graph_version' => 'v3.2', |
||
21 | ]); |
||
22 | |||
23 | $helper = $fb->getRedirectLoginHelper(); |
||
24 | |||
25 | $permissions = ['email','user_photos','user_videos','user_posts','user_link','user_status','user_link']; // Optional permissions |
||
26 | $loginUrl = $helper->getLoginUrl($CallbackUrl,$permissions); |
||
27 | >>>>>>> 85e358e0c342f50861ef32c55d7303292e8d8f01 |
||
28 | |||
29 | echo "<h3> Connect Clicking Below Facebook Icon Using Your Facebook Account.<h3>"; |
||
30 | echo '<a href="' .htmlspecialchars($loginUrl).'"><img alt="Login With Facebook" src="images/fb_icon.png"></a>'; |