Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Presents the social composer view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SocialComposer | 7.3 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
This function was deprecated.
none
Returns OK or error.
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
This function is free to use.
Created 11st June 2017, last changed 29th January 2023