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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
SocialComposer.Present
Presents the social composer view.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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 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
- IsError
- MailComposer.Present
- MessageComposer.Present
- SocialComposer.AddURL
- SocialComposer.IsPresented
- SocialComposer.New
- SocialComposer.Result
- SocialComposer.SetInitialText
- SocialComposer.SetScript
- SocialComposer.URLCount
Example Databases
Created 11st June 2017, last changed 12nd June 2020
SocialComposer.New - SocialComposer.RemoveAllImages
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos