Note that this is the whole point -- if Facebook were free software, it would be that easy, because other software could interoperate with it effectively. Free software naturally ameliorates this kind of lock-in effect. Not using free software in the first place is what gets people into this mess.
Were all of Facebook's service free software, that wouldn't guarantee interoperability.
Conversely, providing effective interoperability doesn't require free software.