[英]Facebook API : Can I get user's public URL in v2
In v1 we can get user public link 在v1中,我们可以获得用户公共链接
/v1.0/me /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';
});
}
result will be https://www.facebook.com/user_id 结果将是https://www.facebook.com/user_id
but in v2 但在v2中
/v2.0/me /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';
});
}
result will be https://www.facebook.com/app_scoped_user_id/814241178599786/ 结果将是https://www.facebook.com/app_scoped_user_id/814241178599786/
Is that possible to get public URL from Facebook API? 是否可以从Facebook API获取公共URL? If yes then how?
如果是,那怎么办?
Thank You 谢谢
In Graph v2.0, this is not possible. 在图V2.0,这是不可能的。 The reason for this is that Facebook are trying to provide users with more data security.
原因是Facebook试图为用户提供更多的数据安全性。
As you mentioned, the app scoped user URL https://www.facebook.com/app_scoped_user_id/814241178599786/ will redirect to their profile page. 如您所述,应用程序范围内的用户URL https://www.facebook.com/app_scoped_user_id/814241178599786/将重定向到其个人资料页面。
Also note that you can't get: 另请注意,您无法获得:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.