Download the PHP package lerni/instagram-basic-display-feed-element without Composer

On this page you can find all versions of the php package lerni/instagram-basic-display-feed-element. 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-feed-element

Silverstripe instagram-basic-display-feed-element

Instagram feed in a dnadesign/silverstripe-elemental-element. It utilizes espresso-dev/instagram-php and caches the API-response for performance reasons. Since different scrapers lead to all sorts of problems - mostly cookie/session related, this module came to existence. appId & appSecret are stored in yml-config or .env, the rotating token in DB.

Example in action from Lipp&Leuthold

Installation

Composer is the recommended way installing Silverstripe modules.

Requirements

Configuration

You'll need to set up a FB App and set appId & appSecret (Instagram not FB). redirectUri will be DYNAMICALLY-SET-HOST.TLD/_instaauth but you can also set it explicitly with a domain per yml-config. Make sure to configure the correct values (e.g. dev-url) in your FB App! If no token is generated yet, you'll find a link to generate one in the settings tab of the element. The token 'll be renewed automatically (on request basis) if older than 30 days.

  1. Install the module
  2. Create a FB App use https://DOMAIN.TLD/_instaauth as redirectUri
    • create an Instagram app on https://developers.facebook.com/apps/?locale=en_US
      • click on "Create App"
        • Filter all
        • choose "Manage messaging & content on Instagram"
      • On Dashboard personalize "Messaging und Content"
        • Copy "Instagram app ID" add it to KRAFT_INSTAFEED_APP_ID in .env
        • Copy "Instagram app secret" add it to KRAFT_INSTAFEED_APP_SECRET in .env
        • Make sure "instagram_business_basic" is set
        • Set "Callback URL" to https://DOMAIN.TLD/_instaauth
        • Set "Verify token" to the same as KRAFT_INSTAFEED_VERIFICATION_TOKEN in .env (something random)
        • "Set up Instagram business login" you can use https://DOMAIN.TLD/_instaauth again Sometimes you just can't - try reloading, different browser or do some other black magic :shrug:
    • add Instagram-Tester (Roles → Add → Instagram-Tester)
    • Login on Instagram & accept/confirm
      • Settings
        • Website Permissions
          • Apps and Websites
            • Accept Tester Invitations
  3. Add appId, appSecret & verificationToken in yml-config or .env like below & ?flush
    • make sure to use the credentials from the Instagram settings, not the general App Settings!
  4. Create an Instagram Feed Element & click on the link in the settings tab to authenticate
  5. Reload CMS to see the generated token
  6. That's it. The token will be updated if older than 30 days on request basis. This means, if a token is older than 30 days and from then on no request is made (element never shown to any visitor), the token invalidates and a warning is thrown. To fix this, delete all tokens and regenerate one with the link provided in CMS.

Styling

Example styling see https://github.com/lerni/ootstra/blob/master/themes/default/src/css/instafeed.css

Troubleshooting

If things go wrong, you may want to check Facebook Platform Status.


All versions of instagram-basic-display-feed-element with dependencies

PHP Build Version
Package 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 lerni/instagram-basic-display-feed-element contains the following files

Loading the files please wait ...