Again, it depends on the app. The photos on your social media accounts don’t have to be on your iPhone. By granting certain apps access to your social media accounts, they can back up the photos you may no longer have on your iPhone.