You can turn off or limit ad tracking on an iPhone through the Privacy menu in your Settings app. You can also choose to turn off location-based ads.
You can easily turn off location tracking on the Facebook app for your iPhone. You can also customize the location settings.