Obs: Deixou de funcionar em: 04/05/2021.
Português
API Desenvolvida Por: Nicolas L. Araujo
Basta adicionar a api dentro do arquivo e declarar a classe
require "instagram_api.php";
$insta = new InstagramApi;
Você precisa definir um usuário do instagram
Como exemplo, utilizado a conta @neymarjr
$user = $insta->instagram("neymarjr");
Então você pode abusar da api enquanto funciona.
$post = $insta->get_single_post_profile($user,2); // Second Post
$image_url = $post["image"][0]["url"]; // Collect image in var
echo "<img src='$image_url'>"; // Publish in html img
English
API Developed By: Nicolas L. Araujo
Just add the api inside the file and declare the class
require "instagram_api.php";
$insta = new InstagramApi;
You need to define an instagram user
As an example, using the @neymarjr account
$user = $insta->instagram("neymarjr");
Then you can abuse the api while it works.
$post = $insta->get_single_post_profile($user,2); // Second Post
$image_url = $post["image"][0]["url"]; // Collect image in var
echo "<img src='$image_url'>"; // Publish in html img
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.