-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
executable file
·38 lines (32 loc) · 1.03 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright 2018 Social Manager.
*
* PHP version 7.2.8
*
* @category Album_Manager
* @package Facebook
* @author Kishan Jasani <[email protected]>
* @license https://rtfbchallenge.000webhostapp.com/privacy_policy/privacy_policy.php
* @link ""
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Kishan Jasani.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
*/
if (!session_id()) {
session_start();
}
require __DIR__ . '/vendor/autoload.php';
$fb = new Facebook\Facebook(
[
'app_id' => 'XXXXXxXXXXXXX', // Replace {app-id} with your app id
'app_secret' => 'XXXXXxXXXXXXXXXXXXXXXXX', // {app-secrete}
'default_graph_version' => 'v2.2'
]
);
$helper = $fb->getRedirectLoginHelper();
?>