Facebook Friends Fetched

Pavel Gnatyuk
Aug 26, 2017 · 1 min read

Problem: Retrieve friends from Facebook.

Answer:

I’ll try to give the shortest possible answer:

Longer answer, if needed

This fetchFriends function is a demo that can be used in a swift project with Facebook SDK integrated:

  1. iOS Facebook SDK. Getting started
  2. Facebook Login for iOS — Quickstart

If you already have a code login you to the Facebook, this function creates the Facebook graph request for taggable friends and parse the response in a primitive way. If the user has many friends the response will contain many parts and so the function is recursive.

My demo project is located on Git.

)

iOS Programming

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade