access_token working, need to add refresh mechanism
This commit is contained in:
parent
eba81cc749
commit
da12e61675
|
@ -65,6 +65,8 @@ function fbes_get_events($fbes_api_key, $fbes_api_secret, $fbes_access_token, $f
|
||||||
'cookie' => true,
|
'cookie' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$facebook->setAccessToken($fbes_access_token);
|
||||||
|
|
||||||
$ret = array();
|
$ret = array();
|
||||||
foreach ($fbes_api_uids as $key => $value) {
|
foreach ($fbes_api_uids as $key => $value) {
|
||||||
if($value!='') {
|
if($value!='') {
|
||||||
|
@ -233,6 +235,10 @@ function fbes_options_page() {
|
||||||
'secret' => $fbes_api_secret,
|
'secret' => $fbes_api_secret,
|
||||||
'cookie' => true,
|
'cookie' => true,
|
||||||
));
|
));
|
||||||
|
$facebook->setAccessToken($fbes_access_token);
|
||||||
|
|
||||||
|
$events = fbes_get_events($fbes_api_key, $fbes_api_secret, $fbes_access_token, $fbes_api_uids);
|
||||||
|
echo "<pre>".json_encode($events, JSON_PRETTY_PRINT)."</pre>";
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<br /><div class="icon32" id="icon-plugins"><br/></div>
|
<br /><div class="icon32" id="icon-plugins"><br/></div>
|
||||||
|
|
Reference in New Issue