Facebook has signed a deal to acquire its biggest potential competitor in free online photo sharing, Instagram, for approximately a billion dollars.