title: Read Address Book data in iOS using Swift
body: <p>I'm still new to Swift and working with the Address Book in iOS and it's proving to be a bear.  Specifically, I'm trying to read a contact's "Social Profiles".</p>
  
  <p>For string values like first/last name, this works:</p>
  
  <pre><code>let firstName = ABRecordCopyValue(person, kABPersonFirstNameProperty).takeRetainedValue() as String
  </code></pre>
  
  <p>But when I try to do essentially the same thing with the   <code>kABPersonSocialProfileProperty</code> property "(a multivalue property of type kABMultiDictionaryPropertyType)", like so:</p>
  
  <pre><code>let socialData = ABRecordCopyValue(person, kABPersonSocialProfileProperty)
  </code></pre>
  
  <p>I get the error: <code>'CFString' is not convertible to 'ABPropertyID'</code></p>
  
  <p>I'm not clear why it throws this error.</p>
  
  <p>I've read the Apple iOS Developer documentation and it seems that <code>ABRecordCopyValue</code> <em>is</em> the correct function ("Returns the value of a record property.") ... so I'm not sure where to go from here.</p>
  
  <p>Might someone explain the error and where I should go to property read the Social Profile data for a contact from the Address Book?  Thank you.</p>