|
@@ -3,13 +3,13 @@ |
|
|
block discarded – undo |
|
3
|
3
|
require_once 'appconfig.php'; |
|
4
|
4
|
|
|
5
|
5
|
$fb = new Facebook\Facebook([ |
|
6
|
|
- 'app_id' => $appId, // variable with Facebook App ID |
|
7
|
|
- 'app_secret' => $appSecret, |
|
8
|
|
- 'default_graph_version' => 'v3.3', |
|
9
|
|
- ]); |
|
10
|
|
- $helper = $fb->getRedirectLoginHelper(); |
|
11
|
|
- $permissions = ['email','user_photos','user_videos','user_posts','user_link','user_status','user_link']; // Optional permissions |
|
12
|
|
- $loginUrl = $helper->getLoginUrl($CallbackUrl,$permissions); |
|
|
6
|
+ 'app_id' => $appId, // variable with Facebook App ID |
|
|
7
|
+ 'app_secret' => $appSecret, |
|
|
8
|
+ 'default_graph_version' => 'v3.3', |
|
|
9
|
+ ]); |
|
|
10
|
+ $helper = $fb->getRedirectLoginHelper(); |
|
|
11
|
+ $permissions = ['email','user_photos','user_videos','user_posts','user_link','user_status','user_link']; // Optional permissions |
|
|
12
|
+ $loginUrl = $helper->getLoginUrl($CallbackUrl,$permissions); |
|
13
|
13
|
|
|
14
|
|
- echo "<h3> Connect Clicking Below Facebook Icon Using Your Facebook Account.<h3>"; |
|
15
|
|
- echo '<a href="' .htmlspecialchars($loginUrl).'"><img alt="Login With Facebook" src="images/fb_icon.png"></a>'; |
|
16
|
14
|
\ No newline at end of file |
|
|
15
|
+ echo "<h3> Connect Clicking Below Facebook Icon Using Your Facebook Account.<h3>"; |
|
|
16
|
+ echo '<a href="' .htmlspecialchars($loginUrl).'"><img alt="Login With Facebook" src="images/fb_icon.png"></a>'; |
|
17
|
17
|
\ No newline at end of file |