![](/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.