Skip to content

freddygreve/Instagram-PHP-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

logo Instagram PHP API

At first I apologize for my bad english. My mother tongue is PHP ;)

Usage

<?php
include_once dirname(__FILE__) . '/src/instagram.php';

// LOGIN (Fill in your own account data)
$instagram = new Instagram("username", "password");

//Get user info
$instagram->getuserdata("username"); //let empty to get info of recent user

//upload image
$instagram->uploadimg("path/to/image.jpg", "description"); //file MUST be jpg!

//follow user
$instagram->follow("username");

//unfollow user
$instagram->unfollow("username");
?>

Releases

No releases published

Packages

No packages published

Languages