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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
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
Created 11st June 2017, last changed 3th April 2021
SocialComposer.New - SocialComposer.RemoveAllImages
Feedback: Report problem or ask question.