We present the fabrication and electric properties of MgB2 ceramic samples doped with nanosized spheres, 4-8 nm, of graphite with a metallic core. The samples were prepared using the spark plasma sintering technique. The size of the additive is comparable to the superconducting coherence length. The short processing time limits the diffusion of the carbon while keeping the core intact. Therefore, in addition to the doping with carbon, the metallic core, which has the size smaller than the superconducting coherence length, create pinning centers which might improve the dissipationless electric transport. The results are analyzed in the framework of different pinning models.