In version 1, it is possible to obtain the user's public link by using the following endpoint:
/v1.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';
});
}
The result will be
However, in version 2,
/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';
});
}
The result will be
Is it possible to retrieve a user's public URL from Facebook API? If so, how can this be done?
Thank you