Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

SocialComposer.IsAvailableForServiceType

Queries whether a social service is available.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SocialComposer 7.3 No No No No Yes

MBS( "SocialComposer.IsAvailableForServiceType"; Type )

Parameters

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

Result

Returns OK 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


SocialComposer.ImageCount   -   SocialComposer.IsPresented

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins