![](/img/trans.png)
[英]I can't get number of followers of the followers of a specific user using Twitter API V2
[英]Facebook API : Can I get user's public URL in v2
在v1中,我们可以获得用户公共链接
/v1.0/我
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.link);
document.getElementById('status').innerHTML = response.link';
});
}
结果将是https://www.facebook.com/user_id
但在v2中
/v2.0/me
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.link);
document.getElementById('status').innerHTML = response.link';
});
}
结果将是https://www.facebook.com/app_scoped_user_id/814241178599786/
是否可以从Facebook API获取公共URL? 如果是,那怎么办?
谢谢
在图V2.0,这是不可能的。 原因是Facebook试图为用户提供更多的数据安全性。
如您所述,应用程序范围内的用户URL https://www.facebook.com/app_scoped_user_id/814241178599786/将重定向到其个人资料页面。
另请注意,您无法获得:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.