2011-09-09 1 views

Répondre

8

third_party_id est un champ sur le User object in the Graph API mais ce n'est pas un champ par défaut - il ne sera renvoyé que si vous le demandez spécifiquement, par ex.

GET https://graph.facebook.com/me?fields=third_party_id&access_token=[YOUR ACCESS TOKEN] 

retournera:

{ 
    "third_party_id": "[THIRD PARTY ID]", 
    "id": "[USER ID]", 
    "type": "user" 
} 

En javascript, vous voulez probablement appeler

FB.api("/me?fields=third_party_id", function (userData) { 
    alert("Your Facebook ThirdPartyId is: " + userData["third_party_id"]); 
}); 
Questions connexes