source: spip-zone/_plugins_/facebook/trunk/action/facebook_access_token.php @ 95004

Last change on this file since 95004 was 95004, checked in by p@…, 5 years ago

Commentaire

File size: 471 bytes
Line 
1<?php
2
3if (!defined('_ECRIRE_INC_VERSION')) {
4        return;
5}
6
7
8/**
9 * Enregistrer le compte Facebook du site.
10 *
11 * @access public
12 */
13function action_facebook_access_token_dist($arg = null) {
14        if (is_null($arg)) {
15                $securiser_action = charger_fonction('securiser_action', 'inc');
16                $arg = $securiser_action();
17        }
18
19        include_spip('inc/facebook');
20        $token = facebook_access_token();
21
22        // Ecrire le token dans les meta du site
23        ecrire_config('facebook/accessToken', $token);
24}
Note: See TracBrowser for help on using the repository browser.