|
|
|
|
|
- Properties specific to fbSession variables
- Closing the session
- WLanguage functions that use a variable of type fbSession
fbSession (Type of variable) In french: fbSession
The fbSession type is used to describe a connection to the Facebook service and to manage the authentication to this service. The characteristics of this connection can be defined and changed using different WLanguage properties. 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 sites.
MySession is fbSession MySession.AppID = "1702546803104741" MySession.AppSecret = "badf00ddeadbeefbadc0deoff1ce8ecd" MySession.Permission = [fbInfoProfile, fbEmail] IF FBStartSession(MySession) THEN Info("Connected") END
Remarks 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 | Secret code of the application supplied when declaring the Facebook application. | 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: Used to access the first email address of a person.
- fbInfoFriends: "user_friends" permission: Used to access the liste of friends for your application.
- fbInfoProfile: "public_profile" permission: Used to access the public profile of a person.
|
Closing the session A started Facebook session is a persistent session: 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|