FAPI.init

SDK initialization. Must be called before calling any method (both when launching applications for the first time and when doing internal transitions across the frame).

Example

/*
* API initialization
*/
var rParams = FAPI.Util.getRequestParameters();
FAPI.init(rParams["api_server"], rParams["apiconnection"],
          /*
          * callback for successful case
          */
          function() {
              
          },
          /*
          * callback for failed initialization
          */
          function(error) {
          }
);