---
title: "init(urlString:username:userIdentifier:service:)"
framework: contacts
role: symbol
role_heading: Initializer
path: "contacts/cnsocialprofile/init(urlstring:username:useridentifier:service:)"
---

# init(urlString:username:userIdentifier:service:)

Initializes a new social profile object with the specified URL.

## Declaration

```swift
init(urlString: String?, username: String?, userIdentifier: String?, service: String?)
```

## Parameters

- `urlString`: The URL for the social profile.
- `username`: The user name for the social profile.
- `userIdentifier`: The service’s user identifier for the social profile.
- `service`: The service name of the social profile.

## Return Value

Return Value An initialized social profile.
