Skip to content

Instantly share code, notes, and snippets.

@yesidays
Created January 15, 2012 05:47
Show Gist options
  • Save yesidays/1614543 to your computer and use it in GitHub Desktop.
Save yesidays/1614543 to your computer and use it in GitHub Desktop.
code.jobs - Post wall Facebook - Codeigniter
<?php
function postwall($publishdata)
{
$CI =& get_instance();
$CI->curl->create("https://graph.facebook.com/".$publishdata['uid']."/feed");
$CI->curl->option('buffersize', 10);
$wallpost = array(
'access_token'=> $publishdata['access_token'],
'message' => $publishdata['message'],
'link' => $publishdata['link'],
'image' => ''
);
$CI->curl->post($wallpost);
return $CI->curl->execute();
}
?>
@Laroscamp
Copy link

ada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment