- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
几天前,我能够通过从图片 URL 中删除 vp/并将分辨率从 更改为我的 android 应用程序中的 inta 个人资料图片。 s150x150 至 s720x720 对于 exp,它工作得很好,但现在我仍然得到“ 无效的 url 签名 ”,所以我认为 instagram 已经在他们的 url 中添加了签名,我通常在图片 URL 中删除从 vp/到/t51 的部分... 像这样
https://scontent-mxp1-1.cdninstagram.com/ 副总裁/xxxxxxxx /t51....jpg
但它不起作用!
我不知道 instagram 发生了什么,所以有人可以帮我找到解决这个问题的方法吗?或者另一种方法。谢谢
最佳答案
以下是截至 2020 年 5 月没有外部网站(如 https://www.instadp.com/)的操作方法.程序也可以使用这个 API 方法。
https://www.instagram.com/usernamehere/?__a=1
graphql.user.id
下。)https://i.instagram.com/api/v1/users/numberhere/info/
{"message": "useragent mismatch", "status": "fail"}
.如果这样做,请执行以下步骤:Mozilla/5.0 (Linux; Android 9; GM1903 Build/PKQ1.190110.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/75.0.3770.143 Mobile Safari/537.36 Instagram 103.1.0.15.119 Android (28/9; 420dpi; 1080x2260; OnePlus; GM1903; OnePlus7; qcom; sv_SE; 164094539)
user.hd_profile_pic_url_info.url
下。)Bad URL timestamp
)。将它们全部替换为“&”。async function fetchIGProfilePic(input) {
if (!/^https?:\/\/i.instagram.com\//.test(window.location.href)) {
if (window.confirm('fetchIGProfilePic:\n\nWe need to navigate to i.instagram.com for the request to work. (We need to make the request from the same domain as the profile pic API; CORS policy.) Please run the script after doing this.\n\nNavigate to i.instagram.com? (Ignore the 404 error.)')) {
window.location.href = 'https://i.instagram.com/api/v1/';
return;
} else {
return 'fetchIGProfilePic: Cancelled.';
}
}
let response;
let output;
try {
response = await fetch('https://www.instagram.com/' + input + '/?__a=1');
if (!response.ok) {
console.log('Failed 1st step, to fetch userID, with bad response status:' + response.status);
return;
}
} catch(error) {
console.log('Failed 1st step, to fetch userID, with ok response status: ' + error);
return;
}
let userData = await response.json();
try {
response = await fetch('https://i.instagram.com/api/v1/users/' + userData.graphql.user.id + '/info/', {
// The following doesn't seem to be necessary in a console request, but I kept it in in case you have issues at this stage.
headers: {'user-agent': 'Mozilla/5.0 (Linux; Android 9; GM1903 Build/PKQ1.190110.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/75.0.3770.143 Mobile Safari/537.36 Instagram 103.1.0.15.119 Android (28/9; 420dpi; 1080x2260; OnePlus; GM1903; OnePlus7; qcom; sv_SE; 164094539)'
}
});
if (!response.ok) {
console.log('Failed 2nd step, to fetch profile pic URL, with bad response status: ' + response.status);
window.alert('fetchIGProfilePic:\n\nYou might not be logged in, which is necesary for the request to work. Please log into an Instagram account, then run this script again.');
return;
}
} catch(error) {
console.log('Failed 2nd step, to fetch profile pic URL, with ok response status: ' + error);
return;
}
let profileData = await response.json();
console.log('Full-size profile pic URL of ' + input + ':\n' + profileData.user.hd_profile_pic_url_info.url);
}
fetchIGProfilePic('instagram'); // Enter the username here.
在浏览器中,按 F12 打开控制台,然后将脚本粘贴进去。将用户名放在底部括号中,然后按 Enter,它会在控制台中检索 URL。确保您在
https://i.instagram.com/api/v1/并在您运行脚本时登录 Instagram 帐户。
关于java - 无法获得 instagram 个人资料图片全尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48662940/
我正在使用passport.js 为我的node.js 应用程序提供OAuth 身份验证。但我确实有一个疑问: 当我在身份验证时收到配置文件对象(当您定义 OAuth 策略时)时,该对象对于所有提供商
我正在尝试对 wordpress 布局进行解码/逆向工程。我正在浏览 CSS 文件,无法弄清楚这个长长的菜单 mumbo-jumbo 是什么! 我不是要任何人检查代码,而是让我知道我在看什么。这些似乎
所以我尝试制作一个包含私有(private)配置文件的 symfony 项目,并且我使用 FriendsOfSymfony,但是如果我创建两个用户,每个人都可以看到其他人上传的文件。我尝试在多个网站上
我正在编写一个需要使用已登录 G+ 用户的公开个人资料图片的 JS 应用。 如果我有用户 ID,我可以使用 Google+ API 查询个人资料数据。 https://developers.googl
我看过很多关于 facebook 身份验证的帖子,要么是旧的,要么不能正常工作。 然而,最终我在我的项目中做了一些可行但不完全的东西。这是我要求的代码 var facebookAuth
我是一名优秀的程序员,十分优秀!