Enter your Instagram client id and display the first results.
Then store the next_max_id
which you receive if you call:
$media->pagination->next_max_id;
<?php | |
/** | |
* Instagram PHP API | |
* | |
* @link https://github.com/cosenary/Instagram-PHP-API | |
* @author Christian Metz | |
* @since 8.11.2014 | |
*/ |
<?php | |
require 'Instagram.php'; | |
use MetzWeb\Instagram\Instagram; | |
$instagram = new Instagram(array( | |
'apiKey' => 'YOUR_APP_KEY', | |
'apiSecret' => 'YOUR_APP_SECRET', | |
'apiCallback' => 'YOUR_APP_CALLBACK' // must point to success.php | |
)); |
{ | |
"username": "moo", | |
"bio": "We print things.", | |
"website": "http://www.moo.com", | |
"profile_picture": "http://images.ak.instagram.com/profiles/profile_7927894_75sq_1378988556.jpg", | |
"full_name": "MOO Print", | |
"id": 7927894 | |
} |
<?php | |
require '../src/Instagram.php'; | |
use MetzWeb\Instagram\Instagram; | |
session_start(); | |
if (isset($_SESSION['access_token'])) { | |
// user authentication -> redirect to media | |
header('Location: success.php'); |
<?php | |
require 'Instagram.php'; | |
use MetzWeb\Instagram\Instagram; | |
$instagram = new Instagram(array( | |
'apiKey' => 'YOUR_APP_KEY', | |
'apiSecret' => 'YOUR_APP_SECRET', | |
'apiCallback' => 'YOUR_APP_CALLBACK' | |
)); |
<?php | |
/** | |
* Instagram PHP API | |
* Example for using the getUserMedia() method | |
* | |
* @link https://github.com/cosenary/Instagram-PHP-API | |
* @author Christian Metz | |
* @since 31.01.2012 | |
*/ |
This a working example based on the previous posted workflow.
Feedback is as always welcome.
Original project repository: Instagram-PHP-API
<?php | |
/** | |
* Instagram PHP API | |
* Example for using the getUserMedia() method | |
* | |
* @link https://github.com/cosenary/Instagram-PHP-API | |
* @author Christian Metz | |
* @since 4.04.2014 | |
*/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page progress example</title> | |
<style> | |
body { | |
background-color: #fff; | |
} | |
#page_progress { |