iOS doesn't do that anymore. Local network access has been a permission that apps need to be granted for at least a few years now
You should be able to restrict apps from any network access, not just local. Like contacting graph.facebook.com
put another way: Little Snitch for iOS.