Skip to content

Php instagram library. With this library, you can use many of the same features in the mobile application.

License

Notifications You must be signed in to change notification settings

Hasokeyk/instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

61 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Contributors Forks Stargazers Issues MIT License Hasan Yรผksetepe @hasokeyk


Logo

Hasokeyk / Instagram

With this PHP library, you can use all features of the instagram Mobile App
Demo ยท Feedback
Tรผrkรงe dokรผman iรงin tฤฑklayฤฑn
๐ŸŒŸ๐ŸŒŸ INSTAGRAM PRO ๐ŸŒŸ๐ŸŒŸ

Donation

patreon: https://www.patreon.com/hasokeyk

Coin Wallet
ETH 0x2091be5b1840b10a841376c366ec0475771b4ec8
BTC 12Set9KZGXWD64pbeGsdqZCJZofxyK77LP

Packet Features

Feature Instagram Instagram Pro
๐ŸŒŸ Use Proxy โŒ โœ”๏ธ
Login โœ”๏ธ โœ”๏ธ
Two Factor Login โœ”๏ธ
(Just SMS)
โœ”๏ธ
(SMS,Whatsapp,Duo,3th App)
๐ŸŒŸ Register โŒ โœ”๏ธ
๐ŸŒŸ Add Duo โŒ โœ”๏ธ
๐ŸŒŸ Facebook Remover โŒ โœ”๏ธ
๐ŸŒŸ Change Password โŒ โœ”๏ธ
๐ŸŒŸ Change Email โŒ โœ”๏ธ
๐ŸŒŸ A2F Disable โŒ โœ”๏ธ
Get My Inbox โœ”๏ธ โœ”๏ธ
Send Message (Confetti,Heart,Gift Box) โœ”๏ธ โœ”๏ธ
Send Photo Message โœ”๏ธ โœ”๏ธ
Send Link Message โœ”๏ธ โœ”๏ธ
Send Story Message โœ”๏ธ โœ”๏ธ
Send Post Message โœ”๏ธ โœ”๏ธ
Get User Info โœ”๏ธ โœ”๏ธ
Get User Post โœ”๏ธ โœ”๏ธ
Get User Story โœ”๏ธ โœ”๏ธ
Share Post โœ”๏ธ โœ”๏ธ
๐ŸŒŸ Share Reels โŒ โœ”๏ธ
๐ŸŒŸ Share Story โŒ โœ”๏ธ
๐ŸŒŸ Delete Post โŒ โœ”๏ธ
๐ŸŒŸ Get User Statistic โŒ โœ”๏ธ
๐ŸŒŸ Get Post Statistic โŒ โœ”๏ธ
๐ŸŒŸ (New) Post Pinning โŒ โœ”๏ธ
๐ŸŒŸ (New) Post Unpinning โŒ โœ”๏ธ
๐ŸŒŸ (New) Story Like โŒ โœ”๏ธ
๐ŸŒŸ (New) Story Unlike โŒ โœ”๏ธ
๐ŸŒŸ (New) Change Status โœ”๏ธ โœ”๏ธ
๐ŸŒŸ (New) Change Status Reply โœ”๏ธ โœ”๏ธ
Get Followers โœ”๏ธ โœ”๏ธ
Get Followings โœ”๏ธ โœ”๏ธ
๐ŸŒŸ Get Fake Followings โŒ โœ”๏ธ
๐ŸŒŸ Get Fake Followers โŒ โœ”๏ธ
๐ŸŒŸ Get Instagram Score โŒ โœ”๏ธ
Get Notifications โœ”๏ธ โœ”๏ธ
Change Avatar โœ”๏ธ โœ”๏ธ
Follow User โœ”๏ธ โœ”๏ธ
UnFollow User โœ”๏ธ โœ”๏ธ
Like Post โœ”๏ธ โœ”๏ธ
Unlike Post โœ”๏ธ โœ”๏ธ
Save Post โœ”๏ธ โœ”๏ธ
Accept Follow Request โœ”๏ธ โœ”๏ธ
๐ŸŒŸ Don't Follow Me โœ”๏ธ โœ”๏ธ
Get Pedding Message โœ”๏ธ โœ”๏ธ
Get My Collections โœ”๏ธ โœ”๏ธ
Create Collection โœ”๏ธ โœ”๏ธ
Edit Collection โœ”๏ธ โœ”๏ธ
Del Collection โœ”๏ธ โœ”๏ธ
Send Comment To Post โœ”๏ธ โœ”๏ธ
Delete Comment To Post โœ”๏ธ โœ”๏ธ
Get Hashtag Info โœ”๏ธ โœ”๏ธ
๐ŸŒŸ Get My Secret Followers โœ”๏ธ โœ”๏ธ
๐ŸŒŸ Who Viewed My Profile โœ”๏ธ โœ”๏ธ
Get Me Most Seen Feed โœ”๏ธ โœ”๏ธ
Get Me Least Interacted With โœ”๏ธ โœ”๏ธ

FAQ

GO FAQ

Contents

  1. About Project
  2. Get Started
  3. Usage
  4. Road Map
  5. Contributors
  6. License
  7. Contant Us

Hasan Yรผksektepe

Linkedin Badge Twitter Badge Github Badge Visitor Badge

About Project

This project is made in PHP library of all instagram mobile app features. This library can send exactly same queries like mobile app and returns server responses.

Getting Started

Please read carefully.

Requirements

File permissions

Give permission to the following files and folders with chmod 777.

/vendor/hasokeyk/

Setup via Composer

  • you must determine your root(working) folder after that open console ( terminal )
    composer require hasokeyk/instagram

Installing via download Repository

  1. Firsty download repository
    git clone https://github.com/hasokeyk/instagram.git
  2. Use the command below to download the required libraries.
    composer install

Examples

Login

You must login before each operation. In your first login operation, the system will be cached and your operation will run faster.

<?php

    use Hasokeyk\Instagram\Instagram;

    require "/vendor/autoload.php";

    $username = 'username';
    $password = 'password';

    $instagram = new Instagram($username,$password);
    $login = $instagram->login->login();
    if($login){
        echo 'Login success';
    }else{
        echo 'Login Fail';
    }

    //LOGIN CONTROL
    $login_control = $instagram->login->login_control();
    if($login_control){
        echo 'Login True';
    }else{
        echo 'Login False';
    }
    //LOGIN CONTROL

Two factor authorization

In your first login attemp, if two factor authorization are enabled, instagram will send you a code. If you enter the code into the input area, yout login operation will be completed automatically. After your next logins, if yout IP is not changed, you can login without asking code.

<?php

    use Hasokeyk\Instagram\Instagram;

    require "/vendor/autoload.php";

    $username = 'username';
    $password = 'password';

    $instagram    = new Instagram($username, $password);

    if(isset($_REQUEST['two_factor_login_code'], $_REQUEST['two_factor_identifier']) and !empty($_REQUEST['two_factor_login_code']) and !empty($_REQUEST['two_factor_identifier'])){
        $code             = trim($_REQUEST['two_factor_login_code']);
        $token            = trim($_REQUEST['two_factor_identifier']);
        $two_factor_login = $instagram->login->two_factor_login($code, $token);
        print_r($two_factor_login);
    }else{
        $login        = $instagram->login->login();
        if(isset($login->two_factor_identifier) and !empty($login->two_factor_identifier)){
            echo <<<END
        <form action="" method="post">
            <input type="hidden" name="two_factor_identifier" value="$login->two_factor_identifier">
            <input type="text" name="two_factor_login_code">
            <input type="submit" value="Login">
        </form>
        END;
        }
        else if($instagram->login->login_control()){
            echo 'Login Success';
        }
        else{
            echo 'Login Fail';
        }
    }

Getting user posts

When you run the below code, you will get last 50 posts of user you are logged into. If you want another accounts posts get_user_posts('hasokeyk') please use this.

<?php

    use Hasokeyk\Instagram\Instagram;

    require "../vendor/autoload.php";

    $username = 'username';
    $password = 'password';

    $instagram = new Instagram($username,$password);

    $login = $instagram->login->login_control();
    if($login){

        $user_posts = $instagram->user->get_user_posts();
        print_r($user_posts);

    }else{
        echo 'Login Fail';
    }

Contributors

Asฤฑm Murat YILMAZ - GITHUB

License

You can download and use it as long as this project is under development. If used for other purposes The person who wrote the codes is not responsible. By downloading and using this project, you agree to this.

Contact

Hasan Yรผksektepe - INSTAGRAM Website : https://hayatikodla.net