kishanjasani /
SociaManager
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Copyright 2018 Social Manager. |
||
| 5 | * |
||
| 6 | * PHP version 7.2.8 |
||
| 7 | * |
||
| 8 | * @category Album_Manager |
||
| 9 | * @package Facebook |
||
| 10 | * @author Kishan Jasani <[email protected]> |
||
| 11 | * @license https://rtfbchallenge.000webhostapp.com/privacy_policy/privacy_policy.php |
||
| 12 | * @link "" |
||
| 13 | * |
||
| 14 | * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
||
| 15 | * use, copy, modify, and distribute this software in source code or binary |
||
| 16 | * form for use in connection with the web services and APIs provided by |
||
| 17 | * Kishan Jasani. |
||
| 18 | * |
||
| 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND |
||
| 20 | */ |
||
| 21 | |||
| 22 | if (!session_id()) {
|
||
| 23 | session_start(); |
||
| 24 | } |
||
| 25 | |||
| 26 | require __DIR__ . '/vendor/autoload.php'; |
||
| 27 | |||
| 28 | $fb = new Facebook\Facebook( |
||
| 29 | [ |
||
| 30 | 'app_id' => 'XXXXXxXXXXXXX', // Replace {app-id} with your app id
|
||
| 31 | 'app_secret' => 'XXXXXxXXXXXXXXXXXXXXXXX', // {app-secrete}
|
||
| 32 | 'default_graph_version' => 'v2.2' |
||
| 33 | ] |
||
| 34 | ); |
||
| 35 | |||
| 36 | $helper = $fb->getRedirectLoginHelper(); |
||
| 37 | |||
| 38 | ?> |
||
|
0 ignored issues
–
show
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.