PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Starting the session
  • Characteristics of the session
  • Stopping the session
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Used to authenticate and log in to Faceboook.
AndroidiPhone/iPadIOS WidgetMac Catalyst This function is not available in the simulator.
Example
MySession is fbSession
MySession.AppID = "1702546803104741"
MySession.AppSecret = "badf00ddeadbeefbadc0deoff1ce8ecd"
MySession.Permission = [fbInfoProfile, fbEmail]
IF MySession.Start() THEN
Info("Connected")
END
Syntax
<Result> = <Session>.Start()
<Result>: Boolean
  • True if the connection was established,
  • False otherwise.
<Session>: fbSession variable
Name of fbSession variable corresponding to the connection to initialize.
Remarks

Starting the session

  • <fbSession variable>.Start authenticates users on a Facebook server. This function initializes the connection with the server and it must be called before any communication with Facebook.
  • iPhone/iPadIOS WidgetMac Catalyst The function is using the Facebook account entered by the user on the phone (if this account is specified).
  • Android A single session can be started at a time. If <fbSession variable>.Start is called while a session is already open, the previous session will be closed.
  • The <fbSession variable>.Start function must only be called from the main the thread of the application.
Android

Characteristics of the session

The "public_profile" permission is always required when starting a Facebook session. If this permission was not specified in the list of permissions for the fbSession variable passed as parameter to <fbSession variable>.Start, this permission will be automatically requested.

Stopping the session

A started Facebook session is a persistent session: it will remain opened:
Component: wd270ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment