Class

CNSocialProfile

An immutable object that represents one of the user's social profiles.

Declaration

@interface CNSocialProfile : NSObject

Overview

Some social profile services, such as Facebook and Twitter, are predefined in this class. You can also specify your own social profile service with the initWithUrlString:username:userIdentifier:service: method.

CNSocialProfile objects are thread-safe, and you may access their properties from any thread of your app.

Topics

Creating a Social Profile Object

- initWithUrlString:username:userIdentifier:service:

Initializes a new social profile object with the specified URL.

Getting Social Profile Information

username

The user name for the social profile.

service

The social profile’s service name.

urlString

The URL associated with the social profile.

userIdentifier

The service’s user identifier associated with the social profile.

Getting Localized User Profile Information

+ localizedStringForKey:

Returns the localized name of the property for the specified key.

CNSocialProfileUsernameKey

The social profile user name.

CNSocialProfileServiceKey

The social profile service.

CNSocialProfileURLStringKey

The social profile URL.

CNSocialProfileUserIdentifierKey

The social profile user identifier.

Getting Localized Service Names

+ localizedStringForService:

Returns the localized name of the specified service.

CNSocialProfileServiceFacebook

The Facebook social profile service.

CNSocialProfileServiceFlickr

The Flickr social profile service.

CNSocialProfileServiceGameCenter

The Game Center social profile service.

CNSocialProfileServiceLinkedIn

The LinkedIn social profile service.

CNSocialProfileServiceMySpace

The MySpace social profile service.

CNSocialProfileServiceSinaWeibo

The Sina Weibo social profile service.

CNSocialProfileServiceTencentWeibo

The Tencent Weibo social profile service.

CNSocialProfileServiceTwitter

The Twitter social profile service.

CNSocialProfileServiceYelp

The Yelp social profile service.

Relationships

Inherits From