Instagram API-获取用户ID [英] Instagram API -Get the userId

查看:232
本文介绍了Instagram API-获取用户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经集成了instagram api(带有{userId}/media/recent)以获取基于userId的媒体供稿.直到2016年6月1日,它的工作状况都很好.现在,关于如何获取新instagram页面的userId,我们需要像新版本的instagram一样包含它,这似乎很困难.这是我们从以前用来获取instagram userId的站点获得的错误消息. http://上的由于Instagram的API规则的更改,该服务自6月1日起不再可用." www.otzberg.net/iguserid/

We had integrated instagram api (with {userId}/media/recent) to get media feeds based on userId. It was working fine until June 1 2016 . Now on how do I get userId for new instagram pages which we need to include as with the new release of instagram it seems difficult. This is the error messsage we get from a site from where we used to get instagram userId. "This service is no longer available as of 01. June, due to changes in Instagram's API rules" from http://www.otzberg.net/iguserid/

问候 拉加夫

推荐答案

提到的网站otzberg.net/iguserid是我的个人网站,我根据Daniel Storm正确提及的API声明将其关闭.该工具的类型永远不会被Instagram批准.但是,有一些简单的步骤来获取您的Instagram用户ID,使用Google Chrome和开发人员工具(F12或⌥+⌘+ i)

The mentioned website otzberg.net/iguserid is my personal site and I shut it down, based on the API announcement, which was correctly mentioned by Daniel Storm. The type of tool would never be approved by Instagram. However there are a few easy steps to get your Instagram User-ID, use Google Chrome and the Developer Tools (F12 or ⌥ + ⌘ + i)

在个人资料页面的控制台视图中(例如 https://www.instagram.com/lufthansa/)类型:

In the console view of the profile page (e.g. https://www.instagram.com/lufthansa/) type:

    window._sharedData.entry_data.ProfilePage[0].user.id

以下是屏幕截图:

这篇关于Instagram API-获取用户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆