Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SocialComposer.IsAvailableForServiceType

Queries whether a social service is available.

Component Version macOS Windows Linux Server iOS SDK
SocialComposer 7.3 ❌ No ❌ No ❌ No ❌ No ✅ Yes

Deprecated

This function was deprecated.

MBS( "SocialComposer.IsAvailableForServiceType"; Type )   More

Parameters

Parameter Description Example
Type The social service type.
Can be Facebook, Twitter, SinaWeibo or TencentWeibo.
"Facebook"

Result

Returns 0, 1 or error.

Description

Queries whether a social service is available.
Returns 1 if available or 0.

This function can be called before having a composer initialized.

Examples

Check for availability:

Set Variable [ $r ; Value: MBS( "SocialComposer.IsAvailableForServiceType"; PlaceHolder::Service ) ]
If [ $r ≠ 1 ]
    Show Custom Dialog [ "Can't send message." ; "This iOS device is not configured to post on " & PlaceHolder::Service & "." ]
    Exit Script [ Text Result: "failed" ]
End If

See also

Example Databases

This function is free to use.

Created 11st June 2017, last changed 9th November 2021


SocialComposer.ImageCount - SocialComposer.IsPresented