cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 782 forks source link

the code is not working #215

Open rkkiiit opened 8 years ago

rkkiiit commented 8 years ago

<?php session_start(); require '../src/Instagram.php'; use MetzWeb\Instagram\Instagram; $instagram = new Instagram(array( 'apiKey' => 'API KEY', 'apiSecret' => 'API SECRET', 'apiCallback' => callback url' )); $loginUrl=$instagram->getLoginUrl(); ?> <!DOCTYPE html>

Instagram - OAuth Login ```

Instagram display your photo stream

angelxmoreno commented 8 years ago

It helps to mention errors and to format your code for readability.

samseen commented 7 years ago

Try using the example first. Be sure to use the success.php file as your uri redirect when requesting for a client id. If you're on a windows, you can try using 127.0.0.1/navigating to where success.php is.