Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CNContact.AddSocialProfile
Adds an social profile to a contact.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CNContact.AddSocialProfile"; ContactIdentifier; Label; URLString; Username; UserIdentifier; Service ) More
Parameters
Parameter | Description | Example |
---|---|---|
ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |
Label | The label to use. For your convenience we translate Work, Home and Other to the right values, so they get localized in display. Default label is Other. |
"Work" |
URLString | The URL of the service. | "http://twitter.com/MBSPlugins" |
Username | The user name. | "MBSPlugins" |
UserIdentifier | The user idenitifer. | "" |
Service | The service name. For your convenience we accept here Facebook, Flickr, LinkedIn, MySpace, SinaWeibo, TencentWeibo, Twitter, Yelp and GameCenter to the correct constant. |
"Twitter" |
Result
Returns OK or error.
Description
Adds an social profile to a contact.This is a convenience function to add just one social profile with a given label to the contact.
Please call CNContactStore.UpdateContact later to store the values.
See also
- CNContact.AddEmailAddress
- CNContact.AddInstantMessage
- CNContact.AddPhoneNumber
- CNContact.AddSocialProfileJSON
- CNContactStore.AddContact
- CNContactStore.NewContact
- CNContactStore.UpdateContact
Example Databases
Created 1st August 2018, last changed 3th August 2018