Skip to content

Instantly share code, notes, and snippets.

View cosenary's full-sized avatar

Christian Metz cosenary

View GitHub Profile
@cosenary
cosenary / README.markdown
Last active December 29, 2017 06:59
Instagram PHP API - Working example: Load more button (AJAX)

Instagram PHP API

How to use

This a working example based on the previous posted workflow.
Feedback is as always welcome.

Original project repository: Instagram-PHP-API

index.php file

@cosenary
cosenary / README.markdown
Last active June 21, 2020 16:56
Instagram PHP API - How to implement a load more button (AJAX)

Instagram PHP API

How to use

index.php file

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;

@cosenary
cosenary / success.php
Last active July 30, 2018 07:43
Instagram PHP API - How to get the most recent media published by an Instagram user.
<?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
*/