2011-09-09 40 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"]); 
});