*** InstaPack v1.0 ***
This library is developed solely for Educational Purpose.
I do not motivate any of the user of this library to misuse it in any of the ways.
If found, will be held responsible, no involvement of mine will be there at all!
Enjoy! Learn! Don't Misuse!
For more such applications & Help:-
- Github :- https://github.com/suraj2334
- Website :- http://suraj-mundalik.info
- Fetch Profile Picture of any Instagram account in Full Resolution
- Fetch Post Image of any Instagram post (with valid URL to the Post) in Full Resolution
- Fetch Post Video of any Instagram post (with valid URL to the Post) in Full Resolution
-
Fetch_Profile_Picture("username")
This method takes Instagram username as an Parameter and directly returns the Profile Picture of that user in Full Resolution.
-
Fetch_Post_Image("Instagram_Post_URL")
This method takes Instagram Post URL (URL of the post for which you want to fetch the Image) as an Parameter and directly returns the Post Image of that post in Full Resolution.
-
Fetch_Post_Video("Instagram_Post_URL")
This method takes Instagram Post URL (URL of the post for which you want to fetch the Video) as an Parameter and directly returns the Post Video of that post in Full Resolution.
- Include the InstaPack/library.php in your script
- Create an Object of type InstaPack
For example :- $IP = new InstaPack; - Call any of the method to use it
For example :- echo $IP->Fetch_Profile_Picture("github");
<?php
require('InstaPack/library.php');
$IP = new InstaPack;
echo $IP->Fetch_Profile_Picture("github");
?>
That is it! Above code will fetch profile picture of user github in full resolution.
<?php
require('InstaPack/library.php');
$IP = new InstaPack;
echo $IP->Fetch_Post_Image("https://www.instagram.com/p/BZ73_2qFnV9/?taken-by=github");
?>
That is it! Above code will fetch the post image in the given Instargram Post URL in full resolution.
<?php
require('InstaPack/library.php');
$IP = new InstaPack;
echo $IP->Fetch_Post_Video("https://www.instagram.com/p/BaCc4jwFtW9/?taken-by=github");
?>
That is it! Above code will fetch the post video in the given Instargram Post URL in full resolution.
The library provides sufficient error handling for invalid parameters passed to its methods. If the method fails to fetch the data it will return the error Unable to retrieve the ***.
Where *** can be:-
- Profile Picture (If the username is invalid or not found)
- Post Image (If the Post URL is invalid or not found)
- Post Video (If the Post URL is invalid or not found)