<?php
/**
 * File: facebook.php
 * User: zacharydubois
 * Date: 2016-01-04
 * Time: 20:49
 * Project: Digital-Footprint-Profile
 */
<?php
/**
 * File: facebook.php
 * User: zacharydubois
 * Date: 2016-01-04
 * Time: 20:49
 * Project: Digital-Footprint-Profile
 */

namespace dfp;

$denied = filter_input(INPUT_GET, 'denied');

$config = new Config();

if (!isset($denied) || array_key_exists('oauth_verifier', $_GET)) {
// Create twitter.
    $twitter = new Twitter($config, new Session($config));
    $twitter->accessToken();
    $twitter->getPosts();
}

header('Location: ' . Utility::buildFullLink($config, false, 'session'));

Add a model for the callback.
Add a model for the callback.
