Update 1.4.0 lib, update fb and twitter code