Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Social.RequestAccessForAccountType
Requests permissions to use accounts.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Social | 5.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Deprecated
This function was deprecated.
MBS( "Social.RequestAccessForAccountType"; Type { ; Filename; ScriptName } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Type | The type of accounts to checks. Can be Twitter, Facebook, SinaWeibo, TencentWeibo or LinkedIn. LinkedIn is macOS only and not available on iOS. |
"Twitter" | |
Filename | The database file name where the script is located. | "test.fmp12" | Optional |
ScriptName | The script to call when access is decided. | "MyScript" | Optional |
Result
Returns OK or error.
Description
Requests permissions to use accounts.Obtains permission, if necessary, from the user to access protected properties, and utilize accounts of a particular type in protected operations, for example OAuth signing.
The provided script is called (if provided) to inform about whether access is granted.
The parameter of the script is a list of values containing first the type of service, second granted or failed as keyword and third an error message.
With plugin version 6.0 or newer the script name can be a script ID number. In that case the plugin queries the script name for the given script ID. This allows to call scripts by ID and avoid problems if scripts are later renamed.
Notice: FileMaker 19.2 adds a fmplugin extended privileges. If you have such an extended privileges to allow the plugin to trigger scripts, you need to grant permissions for it. If such a privilege is not defined, the plugin is allowed to trigger scripts. See FileMaker product documentation for details.
Examples
Request permissions for Twitter:
Set Variable [$r; Value:MBS( "Social.RequestAccessForAccountType"; "Twitter"; Get(FileName); "RequestAccessForAccountTypeCompleted" )]
See also
Example Databases
This function is free to use.
Created 28th August 2015, last changed 12nd June 2020
Social.HasAccessForAccountType - SocialComposer.AddImageContainer