Social media API on my website

I am trying to make it so when a user signs into my marketplace they can see their pictures from Facebook and Instagram. When a user creates an account they will connect there Facebook, Instagram, etc and be able to view it on their page.