Download the PHP package tj-digital/instagram without Composer

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

Eleven Miles: Instagram

Requirements

In order for the Instagram authentication process to work, you must setup a Facebook App with support for basic instagram display permissions. Once generated, add your INSTAGRAM_CLIENT_ID & INSTAGRAM_CLIENT_SECRET values to your project's .env file (or ENV vars depending on your setup) in order to succesfully complete authentication.

Within the Facebook App, you will need to add all site urls (local, uat & live) to the Valid OAuth redirect URIs field within the Client OAuth Settings section of the Instagram app settings. The format should be: https://{your-site-url}/auth/instagram/callback. This is the url that the application will pass to Instagram to both validate and redirect back to which is then picked up in the /auth/instagram/callback route and ACF options page.

You can also place this same url value in the Deauthorize field although this callback is not currently used in this integration.

Once this has been completed, you must then add all Instagram accounts that this integration will use (multiple are supported i.e. via a multi-site setup) to the User Token Generator section. This will take you through to the Facebook app roles page and at the bottom there is a section called Instagram Testers, here you can add Instagram account by their Instagram username. Once added, the Instagram account holder will need to logging to the Instagram website (not supported yet in the app), go to their settings, click on Apps and websites and then click Tester invitations and accept the invitation from Tilda Feed.

Setup

Must be used with ACF and is design to work with an existing custom admin settings/options page to be setup similar, using the NanoSoup\Nemesis\ACF\BaseFields package as per the example below.

Once configured, you must also set the SITE_SETTINGS_SLUG env variable so that the router can return cms users to the site settings page once authorisation has completed via Facebook/Instagram

Note: Ensure you replace the acf/render_field/name= with the matching field value for your instagram field if different than instagram_url. The field has no bearing on the instagram account connected to the feed, this is handled during the instagram app authentication process.

Connecting your instagram account

Once setup from a code prespective, visit your site settings page in your WP CMS and click on the Authorise Instagram Feed button. This will kick off the app authorisation flow via the Facebook app and Instagram account you are connecting with.

Rendering the Instagram feed

To use the connected instagram

Basic twig templating with Instagram data (please customise as appropriate to your markup and requirements).

Caching

This package supports data caching by passing the returned Instagram data to a cache json file, which it will attempt to located from:

In order to support this, you will need to ensure that there is a cache folder in the root of your theme, and exclude it from both your theme's version control (i.e. via a .gitignore file) and any automated deployment processes to avoid losing the cached data when deploying changes to your site.


All versions of instagram with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
upstatement/routes Version ^0.9
timber/timber Version ^1.20.0
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 tj-digital/instagram contains the following files

Loading the files please wait ....