wpfb_add_to_asyncinit

As an alternative to jfb_output_facebook_btn, this will setup an event to automatically popup the Facebook Connect dialog as soon as the page finishes loading (as if they clicked the button manually).

Description

do_action( 'wpfb_add_to_asyncinit' ); 

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpfb_add_to_asyncinit' ); 
The following example is for adding a hook callback.
  1. // define the wpfb_add_to_asyncinit callback 
  2. function action_wpfb_add_to_asyncinit( ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpfb_add_to_asyncinit', 'action_wpfb_add_to_asyncinit', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpfb_add_to_asyncinit', 'action_wpfb_add_to_asyncinit', 10, 0 ); 

Defined (1)

The action is defined in the following location(s).

/Main.php  
  1. <?php do_action('wpfb_add_to_asyncinit'); ?>