You're using the wrong identifier for extracting ABMultiValueRef homepages
. Use the kABPersonURLProperty
identifier instead of kABPersonHomePageLabel
, e.g.
ABMultiValueRef webpages = ABRecordCopyValue(person, kABPersonURLProperty);
// Then iterate thru webpages to get the homepage
for (CFIndex k=0; k < ABMultiValueGetCount(webpages); k++)
{
// Your code here
}