Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SocialComposer.Present
Presents the social composer view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SocialComposer | 7.3 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
Deprecated
This function was deprecated.
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 then 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"; "https://www.monkeybreadsoftware.com/filemaker/") ]
Set Variable [ $r ; Value: MBS( "SocialComposer.Present") ]
End If
See also
- IsError
- MailComposer.Present
- MessageComposer.Present
- SocialComposer.AddURL
- SocialComposer.IsPresented
- SocialComposer.New
- SocialComposer.Result
- SocialComposer.SetInitialText
- SocialComposer.SetScript
- SocialComposer.URLCount
Example Databases
This function is free to use.
Created 11st June 2017, last changed 25th January 2024