Skip to content

Instantly share code, notes, and snippets.

@rjonesy
Last active July 11, 2018 16:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjonesy/7a806f079c9f4e226b677c8850879a2e to your computer and use it in GitHub Desktop.
Save rjonesy/7a806f079c9f4e226b677c8850879a2e to your computer and use it in GitHub Desktop.

Add Photos to your iOS Contacts

Purpose:

iOS heavily uses circle photo avatars in iMessage, yet most people don't have photos for their contacts. This app provides an easy way for iOS users to get photos of their friends from social networks such as – in order: Twitter, Facebook, LinkedIn, Github – and then tap to select which photo to apply to each contact.

Profile Photo Documentation:

Twitter - Lookup by Name
Twitter - Get Profile Photo

Facebook - Lookup by Email
Facebook - Get Profile Photo

LinkedIn - Get Profile Photo
LinkedIn Stack Overflow 100x100 max

Github - Lookup by Email
Github - Get Profile Photo

Potential Problems:

  1. Facebook api rate limits, it looks reasonably high though?
  2. LinkedIn appears to be easy, but I’ve never actually seen an app use it, I've always seen them require a csv download, something fishy is up... Stack Overflow comments saying 100x100 is best available

App Parts:

  1. Authorization Screen - auth iOS contact access and >= 1 social network. Tap next
  2. Processing Screen - show progress. For each contact, check in order: phone, email(s), and name for a photo. Check each network.
  3. Results Screen - segmented controller at top: with photo | without photo. For each, show contact name in 1 table cell row, then next table cell is a row of round photo of each new photo found (and any existing photo), with network small icon beside. Allow tap selection of any 1 avatar per row. Tap next.
  4. Apply Screen - applies selected photos to contacts and show progress bar. Show count when done. Show refresh button. Return to results screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment