The social media giant changed its policies in 2015, but not before apps such as FarmVille and Tinder — and the Obama campaign — took advantage.