Coder Social home page Coder Social logo

hasokeyk / instagram Goto Github PK

View Code? Open in Web Editor NEW
72.0 5.0 18.0 140 KB

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

License: MIT License

PHP 100.00%
instagram instagram-api instagram-bot instagram-scraper instagrambot instagram-client instagram-stories instagram-downloader instagram-photos instagram-feed

instagram's Introduction

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

instagram's People

Contributors

dependabot[bot] avatar hasokeyk avatar jomisacu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

instagram's Issues

Login Fail Hatası

Merhabalar, Kullanıcı adı ve şifre doğru olduğu halde bu hatayı alıyorum sebebi nedir acaba ?

Can't login

Hi,
I'm trying to use your example code to login, but it doesn't work. The first echo says "Login success", the second "Login False". Obviously username and password are correct.

Can there be some kind of ban from Instagram?

Float Error

Dünden beri bu hatayı alıyorum. Girilen userin verilerini çekmeye çalışıyorum fakat karşıma böyle bir hata geliyor bunun sebebi nedir ?

`Deprecated: Implicit conversion from float 5729.84 to int loses precision in /var/www/vhosts/usmana.ga/httpdocs/pp/vendor/hasokeyk/instagram/src/Instagram/InstagramRequest.php on line 349

Deprecated: Implicit conversion from float 5733.75 to int loses precision in /var/www/vhosts/usmana.ga/httpdocs/pp/vendor/hasokeyk/instagram/src/Instagram/InstagramRequest.php on line 321

Deprecated: Implicit conversion from float 5735.66 to int loses precision in /var/www/vhosts/usmana.ga/httpdocs/pp/vendor/hasokeyk/instagram/src/Instagram/InstagramRequest.php on line 293

Deprecated: Implicit conversion from float 5737.54 to int loses precision in /var/www/vhosts/usmana.ga/httpdocs/pp/vendor/hasokeyk/instagram/src/Instagram/InstagramRequest.php on line 377
Login Fail`

giriş başarısız

kütüphaneyi denedim fakat şöyle bir hata mevcut, giriş yapmaya çalıştığımda false olarak dönüyor. normal instagram.com dan girdiğimde ise Yeni bir giriş saptadık, bunu sizmi yaptınız ? hatası veriyor.

Http 500 Error

I'm trying to use the api on my hosting, but I'm getting this error. I wonder what the solution is?

got Undefined array key 1 at this line $login = $instagram->login->login();

here's my code
$username = ''; $password = ''; $instagram = new Instagram($username,$password); // dd($instagram); $login = $instagram->login->login(); if($login){ echo 'Login success'; }else{ echo 'Login Fail'; }

got Undefined array key 1 at this line $login = $instagram->login->login();

Here's the result of dd($instagram);
image
There is no login function available in $instagram->login

can help me ??

hi me get error
Fatal error: Uncaught Error: Class "Hasokeyk\Instagram\Instagram" not found in D:\xampp\htdocs\Hasokeyk\instagram\examples\user\instagram-user-login.php:10 Stack trace: #0 {main} thrown in D:\xampp\htdocs\Hasokeyk\instagram\examples\user\instagram-user-login.php on line 10
plz help me , thx

güvenliğe düşme sorunu

Hocam logini var_dump ile çıktı aldım, yurtdışı sunucurında login olunca bunu senmi yaptın sayfasına atıyor. ek çözüm olarak şöyle birşey yaptım fakat çalışmadı.

'X-FB-Client-IP' => 'False',
'X-FB-Client-IP-Forwarded' => '88.255.101.231',

Takipçi ve takip edilenlerin hepsi gözükmüyor

Merhaba.

Öncelikle elinize sağlık çok güzel bir proje geliştirmişsiniz.
Proje sıkıntısız çalışıyor ama takipçilerin hepsini çekmek istediğimde 50 tanesi geliyor.
Yardımcı olabilir misiniz?

Login fail

I tried to use examples/user/instagram-user-statistics.php but the output is always Login Fail although I did use valid credentials.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.