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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

SocialComposer.Present

Presents the social composer view.

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

MBS( "SocialComposer.Present" )

Parameters

none

Result

Returns OK or error.

Description

Presents the social composer view.
This will show the user interface and start the process.
Your script may call this in a script and than wait for the script trigger.

Examples

Make a posting:

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
Set Variable [ $r ; Value: MBS( "SocialComposer.New"; PlaceHolder::Service ) ]
Set Variable [ $r ; Value: MBS( "SocialComposer.SetScript"; Get(FileName); "Sent") ]
If [ Length ( PlaceHolder::Text ) > 0 ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.SetInitialText"; PlaceHolder::Text) ]
End If
If [ Length ( PlaceHolder::URL ) > 0 ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.AddURL"; PlaceHolder::URL) ]
End If
If [ not IsEmpty ( PlaceHolder::Attachment1 ) ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.AddImageContainer"; PlaceHolder::Attachment1) ]
End If
If [ not IsEmpty ( PlaceHolder::Attachment2 ) ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.AddImageContainer"; PlaceHolder::Attachment2) ]
End If
If [ not IsEmpty ( PlaceHolder::Attachment3 ) ]
    Set Variable [ $r ; Value: MBS( "SocialComposer.AddImageContainer"; PlaceHolder::Attachment3) ]
End If
Set Variable [ $r ; Value: MBS( "SocialComposer.Present") ]

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

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins