FBTerminal – Tool to access facebook on command lines

FBTerminal is a command line interface (CLI) for facebook designed in PHP using Facebook Application ID, Secret and Access Token. It will work on Windows (CMD.exe), Linux/MAC (Terminal). Right now FBTerminal have limited commands like status update, text post, photo upload etc. FBTerminal will be updated for all basic commands on facebook. You must have … Read more

Save Facebook Profile Photo

<?php $facebook_uid = ‘100000296428149’; $sourcecode = save_facebook_profile_photo($facebook_uid); print_r($sourcecode); file_put_contents(“images/”.$facebook_uid.”.jpg”, file_get_contents($sourcecode[‘url’])); //this is name of new file that i save function save_facebook_profile_photo( $id ) {     $options = array(         CURLOPT_RETURNTRANSFER => true, // return web page         CURLOPT_HEADER => false, // don’t return headers         CURLOPT_FOLLOWLOCATION => true, // follow redirects         CURLOPT_ENCODING => “”, // handle all encodings         CURLOPT_USERAGENT … Read more