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