chill-pills / laravel-instagram-basic-feed

Laravel package that connect to Instagram's new API Basic Display. Retrieve personal user's posts and keep them in cache, with specific commands or with Scheduler and take care to refresh the token's every two months.
MIT License
3 stars 3 forks source link

Command "instagram-feed:setup-new-access-token" is not defined. #6

Open krpti-a opened 3 years ago

krpti-a commented 3 years ago

Hello! I have followed your instructions, but my laravel application throws the following error, when I try to setup new access token.

 Command "instagram-feed:setup-new-access-token" is not defined.  

  Did you mean one of these?                                       
      instagram-feed:crawl                                         
      instagram-feed:refresh-key 

What am I doing wrong? I have put the ChillPills\InstagramBasicFeed\InstagramBasicFeedServiceProvider::class, in the app.php providers, still nothing.. :(

Otienoh commented 3 years ago

Hello @ankarpy ,

If you are laravel 7+ you dont have to register the class like you did by adding to the app.php.

What you are missing in your command is the authorization code parameter i.e. the that you should get from this step link

php artisan instagram-feed:setup-new-access-token <authorization-code>

It should be something like this

php artisan instagram-feed:setup-new-access-token AQBv...Xw

dib258 commented 3 years ago

Is it working @ankarpy ? Does the answer of @Otienoh help with your problem ? If yes I can close this issues :)