Download the PHP package espresso-dev/instagram-basic-display-php without Composer

On this page you can find all versions of the php package espresso-dev/instagram-basic-display-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package instagram-basic-display-php

Instagram Basic Display PHP API

A simple PHP wrapper for the Instagram Basic Display API. Based on the Instagram-PHP-API by Christian Metz

Latest Stable Version License Total Downloads

Composer package available.

Requirements

Get started

To use the Instagram Basic Display API, you will need to register a Facebook app and configure Instagram Basic Display. Follow the getting started guide.

Installation

I strongly advice using Composer to keep updates as smooth as possible.

Initialize the class

Authenticate user (OAuth2)

Get user profile

All methods return the API data as json_decode() - so you can directly access the data.

Available methods

Setup Instagram

new Instagram(<array>/<string>);

array if you want to perform oAuth:

string once you have a token and just want to return read-only data:

Get login URL

getLoginUrl(<array>, <string>)

Get OAuth token (Short lived valid for 1 hour)

getOAuthToken($code, <true>/<false>)

true : Returns only the OAuth token
false [default] : Returns OAuth token and profile data of the authenticated user

Exchange the OAuth token for a Long lived token (valid for 60 days)

getLongLivedToken($token, <true>/<false>)

true : Returns only the OAuth token
false [default] : Returns OAuth token and profile data of the authenticated user

Refresh access token for another 60 days before it expires

refreshToken($token, <true>/<false>)

true : Returns only the OAuth token
false [default] : Returns OAuth token and expiry data of the token

Set / Get access token

User methods

Authenticated methods

Media methods

Authenticated methods

Pagination

The getUserMedia endpoint has a maximum range of results, so increasing the limit parameter above the limit of 99 won't help.You can use pagination to return more results for this endpoint.

Pass an object into the pagination() method and receive your next dataset:


All versions of instagram-basic-display-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package espresso-dev/instagram-basic-display-php contains the following files

Loading the files please wait ....