Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Initializes a new social composer for a given type.

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


This function was deprecated.

MBS( "SocialComposer.New"; Type )   More


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


Returns OK or error.


Initializes a new social composer for a given type.
Please check with SocialComposer.IsAvailableForServiceType before whether it’s available.
Resets last error and clears last post content.
There is only one message composer at all times, so starting a new one will clear last one.


Post something to Twitter:

Set Variable [ $r ; Value: MBS( "SocialComposer.New"; "Twitter" ) ]
If [ MBS("IsError") = 0 ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.SetInitialText"; "Greetings from FileMaker") ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.AddURL"; "") ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.Present") ]
End If

See also

Example Databases

Created 11st June 2017, last changed 12nd June 2020

SocialComposer.IsPresented   -   SocialComposer.Present

Feedback: Report problem or ask question.

MBS Xojo Plugins