如何在不驗證用戶身份的情況下從Instagram獲取用戶的媒體?我試圖將用戶最近的Instagram媒體放在側邊欄上。我正在嘗試使用Instagram API來獲取媒體。http://instagram.com/developer/endpoints/users/文檔說到GET https://api.instagram.com/v1/users/<user-id>/media/recent/,但它說要傳遞OAuth訪問令牌。訪問令牌代表代表用戶行事的授權。我不希望用戶登錄Instagram以在側欄上看到這一點。他們甚至不需要擁有Instagram帳戶。例如,我可以在沒有登錄Instagram并查看照片的情況下訪問http://instagram.com/thebrainscoop。我想通過API來做到這一點。在Instagram API中,非用戶身份驗證的請求通過client_id而不是access_token。但是,如果我嘗試這樣做,我得到:{
"meta":{
"error_type":"OAuthParameterException",
"code":400,
"error_message":"\"access_token\" URL parameter missing. This OAuth request requires an \"access_token\" URL parameter."
}}那么,這不可能嗎?沒有要求用戶首先通過OAuth登錄Instagram帳戶,是否無法獲取用戶的最新(公共)媒體?
添加回答
舉報
0/150
提交
取消