Facebook contacts are synced using a different contact API implementation. Google used a special case for this, but does not do this anymore. The various equipment manufacturers that support it are customizing the Contacts application for this specific use. That's why Facebook contact sync works on most phones except the Nexus series. These are private implementations, but I'm sure it could be reverse engineering if you are ready to sort a lot of confusing codes.
Andy mcsherry
source share