SocialRequest.SetServiceType
----------------------------

Sets the service type to use.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Social](component_Social.md) | [5.3](newinversion53.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "SocialRequest.SetServiceType"; Request; ServiceType ) 

**MBS**( **"SocialRequest.SetServiceType";** /\* Sets the service type to use. \*/  
**$Request**; /\* The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. \*/   
**$ServiceType**) /\* The service type to use. Can be Twitter, Facebook, SinaWeibo, TencentWeibo or LinkedIn.  
LinkedIn is macOS only and not available on iOS.e.g. "Twitter" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Request | The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. | $request |
| ServiceType | The service type to use. Can be Twitter, Facebook, SinaWeibo, TencentWeibo or LinkedIn.   LinkedIn is macOS only and not available on iOS. | "Twitter" |

### Result

Returns OK or error.

### Description

Sets the service type to use.  
### See also

- [SocialRequest.GetServiceType](SocialRequestGetServiceType.md)
- [SocialRequest.New](SocialRequestNew.md)

This function is free to use.

Created 28th August 2015 , last changed 12nd June 2020

  
[SocialRequest.SetRequestMethod](SocialRequestSetRequestMethod.md) - [SocialRequest.SetURL](SocialRequestSetURL.md)

[HTML Version](SocialRequestSetServiceType.shtml)