How to Install jQuery Instagram Plugin InstaLink 2.0.0
We’ve prepared an important update for jQuery Instagram Plugin InstaLink and decided to describe in detail the process of installing jQuery version of InstaLink, as it undergoes some changes starting with the version 2.0.0.
by
Andrey Kozinskiy
Share:
Share on Facebook
Share on X
Share on LinkedIn
Share on WhatsApp
Copy Link
New changes in Instagram website API will come into force on June 1, 2016. By default, these changes strongly restrict users of Instagram plugins. You can learn more about it in our article Global Update of Elfsight Instagram Plugins 2016. We’ve prepared this update for InstaLink in order to guarantee that restrictions won’t apply to our customers.
Installation of jQuery InstaLink 2.0.0
1. Download and unzip the archive with InstaLink files
You have to visit Downloads page after purchasing InstaLink jQuery plugin on codecanyon.org/downloads/.
Visit CodeCanyon Downloads page
Download and unzip plugin’s archive.
Download InstaLink jQuery Files
For plugin’s installation you need the instalink folder from the archive codecanyon-10585662-jquery-instagram-plugin-instalink.zip.
Unzip InstaLink Archive
2. Upload InstaLink to Your Server
First of all, you have to upload the InstaLink folder to your server in order to install your Instagram plugin. For that FTP-clients (Total Commander, WinSCP, Filezilla, Cyberduck, Transmit and other) are usually used. You can upload the InstaLink folder to the root directory, any directory, where all plugins for your website are placed or any other directory.
3. Link Your Website with The InstaLink Files
After you uploaded the folder with the InstaLink files to your server, you have to link these files with your website. For that, you need to add the following code with a correct path to the files (this is the example for the situation when you uploaded InstaLink folder to the root directory):
Don’t forget that jQuery script should be added before the InstaLink script. Now let’s analyze several examples of how InstaLink script can be added to your website.
Example 1
You uploaded the InstaLink plugin to the root directory and your website didn’t include jQuery script. The code will look like this:
Example 2
Let’s assume that you uploaded the InstaLink files to the directory called “plugins” and your website didn’t include the jQuery script. In this case, you have to set the following code:
4. Add Instagram Widget to Any Page of Your Website
The third step relates to the implementation of some specific Instagram widget on the required web page. For that you have to customize this widget as you want and to insert the generated HTML element into the desired place on your website.
Tip 1: This case requires PHP 5.2+. If you hosting doesn’t support PHP, please, proceed to the point 4.1.
Tip 2: Pay attention to the option data-il-api. You can use it in order to specify a correct path to the folder with InstaLink API.
Here are few more examples of codes so that you will be able to complete the implementation faster.
Example 1
The Instagram plugin was uploaded to the root directory and you use its standard options:
If your hosting doesn’t support PHP, then you need to use Instagram Access Token and the data-il-access-token attribute instead of data-il-api attribute. You can get it with the help of the tutorial How to get Instagram Access Token?. After that you need to set the derived Instagram Access Token to the data-il-access-token attribute.
Tip: You have to leave the data-il-username attribute empty. In this case, you can display only the latest 20 images from the username, which was added to Sandbox of Instagram API Console for this Client ID.