Facebook has purchased Giphy, an animated graphics firm, with a view to integrating the platform with Instagram, its photo and video-sharing social networking…