-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login is erroring (_sharedData) #291
Comments
Same problem. |
Same here. This workaround will let us login, but if we want to use getPhotosByUsername we still need the sharedData value... |
i have same issue and changing sharedvalue to false is fixing only login issue. i cant still fetch user profiles and etc |
I think instagram moved the object from being loaded with the page to now being lazy loaded, I'm not sure. The object still exists to the browser. EDIT: Looks like a problem with
|
@MDproductions-dev |
|
Sir do you have any idea then how can we get likes by photos if shared data is false? |
If you don't want to modify the source code, you may call login with {_sharedData: false} as an argument: const Instagram = require('instagram-web-api') |
This allows to login but we cant still use functions like GetUserByUsername |
Unfortunately you didn’t fix anything you just do not load data. Instead @jlobos Lobito are you still interested in this library? We need your support to update it |
I tried this approach but sadly its not working, any updates from you @jlobos ? |
+1 |
Same issue... |
Still no answer to this? |
+1 |
what do u mean +1? |
I think +1 means that person is having the same issue. |
+1 |
I had the same issue, switching it to a personal account (from a business/creator acc) seem to do the trick |
mine is personal account but still error |
+1 Tried with Creator and Personal account...
Setting
=> Prints undefined for profile |
Has anyone found a way out of this situation or any workaround? |
Hello, After trying to fix the issue with
any idea how to fix ? |
+1 |
seems like instagram changed their code a couple months ago, found this fix on another app though for same issue (no shared data): another relevant post: update: Some data is now located at "https://i.instagram.com/api/v1/users/web_profile_info/?username=myUserName", then the json data is under ['data']['user'] if I am reading that pull request right, however this involves changing the baseUrl to i.instagram.com which breaks everything also this endpoint fails to load if the useragent is not instagram based-- e.g. "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 244.0.0.12.112 (iPhone12,1; iOS 15_5; en_US; en-US; scale=2.00; 828x1792; 383361019)" update 2: |
@hydrix9 you are a gem 💎💎💎 |
I managed to get follow and unfollow working it seems like all the /web/ urls are now at i.instagram.com/api/v1/web/ In my code I removed _getGis and _getSharedData since those were only being used for getUserByUsername. In my code getUserByUsername now returns the results from https://i.instagram.com/api/v1/users/web_profile_info/?username=myUserName I'm working on uploadPhoto, I had to add the followeAllRedirects=true option to prevent a 302 error (not sure where it redirects) I'll have more time to work on this in a couple days, if anyone wants to fix something that's giving a 404 page on request try adding baseUrl: baseUrlApi to the request options to use the i.instagram.com/web/api/ base url instead in my code. I was able to find which url to use by going on the web interface and performing an action and watching the post requests with ctrl-shift-i -> networking on firefox update: I think I found the correct url now for uploadPhoto at "https://i.instagram.com/rupload_igphoto/fb_uploader_{myId}" instead of "instagram.com/rupload_igphoto/{myDate}_0_{myId}" and it's giving a '403 login required' instead of the error above, so looks promising |
I got uploadPhoto working anyways this is way out of scope of the original error, but I got the three major functions I needed working and I wish you luck on fixing the rest of the functions |
For everyone who looking for solution:
|
for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1007698095}}},"lid":"7245399117884480117"} |
try replace your lib/index,js with this files : https://github.com/amamenko/inky-doodle/blob/master/instagram-web-api/index.js |
after running for call function
|
I'm unable to login. 403 error |
This api has been working fine for over a year for me now but since yesterday i have been getting this error:
I fixed it myself (somehow) by setting _sharedData to false at line 48 of /lib/index.js
I don't know what this does or if it is important to have on so might as well make an issue.
The text was updated successfully, but these errors were encountered: