2011-09-09 37 views

回答

8

third_party_idUser object in the Graph API上的一个字段,但它不是默认字段 - 只有在您明确要求时才会返回,例如,

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

将返回:

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

在JavaScript中,你最有可能想打电话给

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