This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
forked from facebookarchive/web-scrumptious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
83 lines (74 loc) · 1.86 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* Configure this file with your own unique server and Facebook application information
*
* @link https://developers.facebook.com/apps/ Facebook application information
*/
class Facebook_Sample_Application {
/**
* Turn on extra debugging output such as console output
* Loads the debug version of the Facebook JavaScript SDK and non-minified third-party scripts
*
* @var bool
*/
const DEBUG = true;
/**
* Facebook application identifier
* Uniquely identifies your web pages to Facebook
* Binds JavaScript SDK actions to a specific application context
*
* @var string
*/
const APP_ID = '';
/**
* Facebook application secret
* Verifies your application with Facebook, like a password
*
* @var string
*/
const APP_SECRET = '';
/**
* Facebook application namespace
* Prefixes your application data properties
*
* @var string
*/
const APP_NS = '';
/**
* Choose a custom locale from a list of Facebook locales
*
* @link https://www.facebook.com/translations/FacebookLocales.xml Facebook locales XML
* @var string
*/
const LOCALE = 'en_US';
/**
* Base URI. Used to build absolute URIs
* Example: http://example.com/
*
* @var string
*/
const BASE_URI = '';
/**
* Static URI. Used to build absolute URIs of static assets such as CSS, JS, images
* Example: http://s.example.com/
*
* @var string
*/
const STATIC_BASE_URI = '';
/**
* Settings used to initialize the Facebook JS SDK
*
* @link https://developers.facebook.com/docs/reference/javascript/FB.init/ FB.init options
*/
public static function js_sdk_init_options() {
$init_variables = array(
'channelUrl' => Facebook_Sample_Application::BASE_URI . 'channel.php',
'status' => true,
'cookie' => true
);
if ( self::APP_ID )
$init_variables['appId'] = Facebook_Sample_Application::APP_ID;
return $init_variables;
}
}
?>