JS API M FB.Bootstrap.EnsureInit
From Facebook Developer Wiki
public static void ensureInit (Callback callback)
Description
Convenient wrapper for calling Facebook API calls. Because the Facebook API is dynamically loaded, this guarantees that your function isn't called until both the libraries are loaded and initialized. Use in conjunction with FB.init.
Example usage:FB.ensureInit ( function () { // ... any code in the Facebook library });
Parameters
| Required | Name | Type | Description | |
| required | callback | Callback | function to call when Facebook is dynamically loaded. |
|---|
Back to class public sealed FB.Bootstrap
