jfb_post_to_wall

The WP-FB-AutoConnect jfb post to wall function.

Description

jfb_post_to_wall( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'jfb_post_to_wall' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-fb-autoconnect/Main.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jfb_post_to_wall($args); 
  9.  

Defined (1)

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

/Main.php  
  1. function jfb_post_to_wall($args) 
  2. global $opt_jfb_ask_stream, $jfb_log, $opt_jfb_stream_content; 
  3. $jfb_log .= "FB: Publishing registration news to user's wall.\n"; 
  4. $url = "https://graph.facebook.com/me/feed?message=" . urlencode(get_option($opt_jfb_stream_content)) . "&access_token=".$args['access_token'];  
  5. $reply = jfb_api_post($url); 
  6. if(isset($reply[error])) 
  7. $jfb_log .= "WARNING: Failed to publish to the user's wall (" . $reply[error]['message'] . ")\n";