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.New

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

MBS( "SocialComposer.New"; Type )

Parameters

Parameter Description Example value
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


SocialComposer.IsPresented   -   SocialComposer.Present

Feedback: Report problem or ask question.




Links
MBS FileMaker blog