Can't get profile details of user that have privacy on my API instagram PHP

北城余情 提交于 2020-03-26 10:28:01

问题


this is my very first post here, am so sorry if my english too bad, I've got some problem about getting user details, iam tryied to get user details of member that have private account in Instagram who i followed on instagram, its mean i can see the details of their profile on mobile phone (instagram app) but it running error in my API, anyone can help me?

this is the error message

stdClass Object ( [meta] => stdClass Object ( [error_type] => APINotAllowedError [code] => 400 [error_message] => you cannot view this resource ) )

I need help, thanks before :D


回答1:


Use user search API, you will get user information like full_name, id, bio, website and profile_picture even if user is private:

https://api.instagram.com/v1/users/search?q=USERNAME

This API will return few user results, match the one with your USERNAME and get the user details.



来源:https://stackoverflow.com/questions/20970001/cant-get-profile-details-of-user-that-have-privacy-on-my-api-instagram-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!