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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

SocialComposer.New

Initializes a new social composer for a given type.

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

Deprecated

This function was deprecated.

MBS( "SocialComposer.New"; Type )   More

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

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"; "http://www.mbs-plugins.com") ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.Present") ]
End If

See also

Example Databases

This function is free to use.

Created 11st June 2017, last changed 29th January 2023


SocialComposer.IsPresented - SocialComposer.Present

💬 Ask a question or report a problem