galen / PHP-Instagram-API

PHP 5.3+ wrapper for the Instagram API
338 stars 159 forks source link

Fatal error: Class not found #48

Open a7md0 opened 9 years ago

a7md0 commented 9 years ago

Fatal error: Class 'Instagram\Core\Proxy' not found in C:\xampp\htdocs\Insta\Auth.php on line 54

Auth.php on line 54: $this->proxy = new \Instagram\Core\Proxy( $client ? $client : new \Instagram\Net\CurlClient );

I hope someone help me with that, I try to solve it for 5 hours!

I have create index.php, and this the code inside: <?php

session_start();

require_once('Auth.php');

$auth_config = array(
    'client_id'         => '*deleted*',
    'client_secret'     => '*deleted*',
    'redirect_uri'      => '*deleted*',
    'scope'             => array( 'likes', 'comments', 'relationships' )
);

$auth = new Instagram\Auth( $auth_config );

if (isset($_GET['code']) && !empty($_GET['code'])){
    $_SESSION['instagram_access_token'] = $auth->getAccessToken( $_GET['code'] );
    echo 'ok';
}else{
    $auth->authorize();
}

?>