I was using selenium python to log in to instagram and open some pages. Hello i am trying to login instagram with python requests library but when i try, instagram turns me bad requests. Import requests from datetime import datetime import re from.
İs anyone know how can i solve this problem? I ran into this same issue. Problem was i was using the facebook app id and app secret instead of the instagram app id & app secret.
I am using the following code to make a python request to login into my instagram account. The instagram basic display api was deprecated on 4th september and when i checked for other alternatives for third party application login (react in my case) it showed a instagram app. With the deprecation of instagram basic display api, you are limited only to create/business accounts, using the new instagram business api (instagram api with instagram. This is done mainly to prevent from ddos attacks.
I am running this on local. It worked fine, but after two days the instagram started sending the message csrf token missing or incorrect. You must go to the instagram basic display. I'm trying to programmatically login to instagram via my own website because i want to retrieve direct messages from instagram (this requires a login as it is not supported in the instagram api (ye.