Instagram access token to retrieve any user feed

前端 未结 3 2019
谎友^
谎友^ 2021-01-06 13:01

Is it normal that I can get any users feed with the same access_token? Here are two examples. The first is from the test account, it is what I should have a

3条回答
  •  生来不讨喜
    2021-01-06 13:19

    According to: Instagram Developer Documentation

    The API call you are trying to make requires an access_token at all times. This is usually done to prevent bots which continously crawl through recent lists to fetch images and such. The only way Instagram could prevent this is via this access_token approach. Once you have the token, you are able to browse through any user's feeds as you would be able to do it on the webpage of the respective user. If you don't want the user to login to see a certain recent list, you could register a dummy account with Instagram, log that in once, and store its access_token, bundle it with your application and you will be able to request the recent feed without prompting the user to login. I am sure that this isn't an accepted way of solving this problem, mainly because according to the documentation the access_token might change at anytime, making your application nonfunctional. Of course, there are solutions even to this scenario. To summarize, I think if you want to request such a data without an access_token, try my 'solution'.

提交回复
热议问题