|
|
|
|
|
- Properties specific to fbSession variables
- Closing the session
- WLanguage functions that use a variable of type fbSession
fbSession (Variable type) In french: fbSession
The fbSession type is used to describe a connection to the Facebook service and to manage the authentication to this service. You can define and change the characteristics of this connection using different WLanguage properties. Important: Before using this WLanguage type, it is necessary to declare the application to Facebook. For more details, see Using Facebook authentication. Remarks: - For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
- This type of variable is available in Linux only for WEBDEV websites.
MySession is fbSession
MySession.AppID = "1702546803104741"
MySession.AppSecret = "badf00ddeadbeefbadc0deoff1ce8ecd"
MySession.Permission = [fbInfoProfile, fbEmail]
IF FBStartSession(MySession) THEN
Info("Connected")
END
Properties Properties specific to fbSession variables The following properties can be used to handle a Facebook session: | | | Property name | Type used | Effect |
---|
AppID | Character string | Identifier of the application supplied when declaring the Facebook application. | AppSecret | Character string or Secret string | Secret code of the application supplied when declaring the Facebook application. New in version 2025Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "Ansi or Unicode string". To learn more about secret strings and how to use the vault, see Secret string vault. | Email | Character string | Email of the end user (may be used to fill the connection dialog beforehand). | PageID | Character string | Identifier of the Facebook page to open. If this parameter is empty, the session is started on a user and not on a page. | Permission | Array | Rights required during the Facebook connection. The rights (or permissions) to supply are defined by Facebook. The list of available rights can be consulted on the page: https://developers.facebook.com/docs/facebook-login/permissions/v2.3. For some rights (the most common ones), you have the ability to use the following constants: - fbEmail: "email" permission: access to a person's first email address.
- fbInfoAmis: "user_friends" permission: access to your application's list of friends.
- fbInfoProfile permission "public_profile": allows access to a person's public profile.
|
Remarks Closing the session An open Facebook session is persistent: it will remain open: WLanguage functions that use a variable of type fbSession - Standard functions:
- Functions that use prefix syntax:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|