Analytics is still allowed in iOS. The problem with Facebooks approach, is that they link that data with cookie tracking, making them able to track you around on all websites and apps that integrates a login with Facebook, or a share and like button.