Download the PHP package innocode-digital/wp-instagram without Composer

On this page you can find all versions of the php package innocode-digital/wp-instagram. 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 wp-instagram

WordPress Instagram Basic Display integration

Description

Enables Instagram Basic Display API for developers.

The idea of the plugin is to use Instagram Basic Display PHP API with ability to get access token through WordPress admin panel.

Install

Activate WordPress Instagram Basic Display integration with WP-CLI wp plugin activate wp-instagram or from Plugins page.

Usage

  1. Check Facebook Manual on how to create an APP.

  2. Add required constants (usually to wp-config.php):

    `

  3. Add site auth URL https://site.com/instagram/auth/ to Valid OAuth Redirect URIs in Basic Display.

  4. Open settings page in WordPress admin panel Settings -> Instagram /wp-admin/options-general.php?page=innocode-instagram

  5. Click on Log in button or Log in as another user in case when should change account.

  6. Start use Instagram Basic Display PHP API through innocode_instagram(); function e.g. innocode_instagram()->getUserProfile();.

  7. (optional) Set site deauth REST API endpoint https://site.com/wp-json/innocode/v1/instagram/deauth in Deauthorize Callback URL in Basic Display.

Notes

If site is a part of Multisite then main site auth URL should be added in Valid OAuth Redirect URIs. So, plugin should be active on all network or at least on the main site additionally.

Plugin adds daily cron job after authorization. So, please be sure cron functionality works. The token tries to update 3 days before the expiration, user profile data updated daily.

Documentation

By default, endpoint auth URL is using instagram as endpoint, but it's possible to change with constant:

`


App site

If you want to use one APP for all of your sites where Instagram integration is in use and correctly handle deauthorization process then this plugin could be installed additionally on a site which will store user IDs and URLs of sites where these IDs are using, e.g. this could be a site of your company. Then it's needed to set one more constant on all sites with activated plugin.

`


It's possible to change full auth URL:

`


It's possible to change Instagram permission:

`


It's possible to change state parameter which is sending with auth request:

`


It's possible to change place where endpoint should be added:

`


All versions of wp-instagram with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
composer/installers Version ~1.0
espresso-dev/instagram-basic-display-php Version ^1.1
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 innocode-digital/wp-instagram contains the following files

Loading the files please wait ....