Social.AccountProperty
----------------------

Queries details of an account.

| 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( "Social.AccountProperty"; accountIdentifier; Selector ) 

**MBS**( **"Social.AccountProperty";** /\* Queries details of an account. \*/  
**$accountIdentifier**; /\* The ID for the account. \*/   
**$Selector**) /\* Which value to return. Can be identifier, accountDescription, username, credential, accountType or accountTypeIdentifier.e.g. "username" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| accountIdentifier | The ID for the account. |  |
| Selector | Which value to return. Can be identifier, accountDescription, username, credential, accountType or accountTypeIdentifier. | "username" |

### Result

Returns value or error.

### Description

Queries details of an account.  
Please use [Social.Accounts](SocialAccounts.md) function to find account identifiers.  
### Examples

List Twitter Accounts

 Go to Layout \[“Accounts” (Accounts)\]  
Delete All Records \[No dialog\]  
Set Variable \[$list ; Value:MBS ( "[Social.Accounts](SocialAccounts.md)"; "Twitter" )\]  
If \[MBS ("IsError")\]  
 Show Custom Dialog \["Error finding accounts"; $list \]  
Else  
 Set Variable \[$count ; Value:ValueCount ( $list )\]  
 If \[$count &gt; 0\]  
 Set Variable \[$i ; Value:1\]  
 Loop  
 Set Variable \[$accountIdentifier ; Value:GetValue ( $list ; $i )\]  
 New Record/Request  
 Set Field \[Accounts::Identifier ; MBS ( "Social.AccountProperty"; $accountIdentifier ; "Identifier" )\]  
 Set Field \[Accounts::Description ; MBS ( "Social.AccountProperty"; $accountIdentifier ; "Description" )\]  
 Set Field \[Accounts::Username ; MBS ( "Social.AccountProperty"; $accountIdentifier ; "username" )\]  
 Set Field \[Accounts::Type ; MBS ( "Social.AccountProperty"; $accountIdentifier ; "accountType" )\]  
 Commit Records/Requests \[No dialog\]  
 Set Variable \[$i ; Value:$i + 1\]  
 Exit Loop If \[$i &gt;= $count \]  
 End Loop  
 End If  
End If  
### See also

- [IsError](IsError.md)
- [Social.Accounts](SocialAccounts.md)

### Example Databases

- [Mac only/Tweet on Twitter](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Tweet%20on%20Twitter.shtml#1ScriptAnchor_)

This function is free to use.

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

  
[SmartCard.Valid](SmartCardValid.md) - [Social.Accounts](SocialAccounts.md)

[HTML Version](SocialAccountProperty.shtml)