The following code applies a global material to the six faces of a cube mesh:
void AddMaterials(KFbxMesh* pMesh) { int i; //get the node of mesh, add material for it. KFbxNode* lNode = pMesh->GetNode(); if(lNode == NULL) return; // cube has 6 faces with the same material for (i = 0; i < 6; i++ ) { lNode->AddMaterial(gMaterial); } }