by Burt Henry
I have picked what I believe is the easiest way to install "fbcmd", a fast and user friendly way to use facebook from the command line. You'll need to know your friends' names for some features but the commands themselves are pretty easy to remember after having used them a couple or three times. Ive written everything so that if you like you can copy and paste commands directly in to a terminal or console except for your auth code which you get from your web-browser and may of course paste it from there.
We will be working in the terminal. To open the terminal press "Ctrl+Alt+t".
As "fbcmd" is not in any of our repositories, we will have to get it from the Internet and install it ourselves.
sudo apt-get update sudo apt-get install php5-cli
curl -O https://raw.github.com/dtompkins/fbcmd/master/fbcmd_update.php
sudo php fbcmd_update.php sudo php fbcmd_update.php install
sudo php ~/dtompkins-fbcmd-5fc0332/fbcmd_update.php sudo php ~/dtompkins-fbcmd-5fc0332/fbcmd_update.php install
Try the "fbcmd" command. Type:
If all is well with your installation you will see a little bit of help which will describe what happens next.
You'll need to authorize this program to use your Facebook data.
fbcmd go access
fbcmd go auth
fbcmd auth XXXX34
Now you will be given a totally insane list of things you can access from the command-line with "fbcmd". Congrats, you've made it. Just type fbcmd in your terminal and you will receive a list of your basic "fbcmd" commands. The help is good so you can use Facebook without waiting for painfully slow webpages to load and refresh. >
Your interaction with Facebook will be handled by commands issued from the command line. The output will be on your terminal screen. Rill likes to redirect this output to a file. You can do this by adding the following to your commands. Note: You will need a space before the ">" and "gedit" is a handy editor to use to read the file.
Your output is in three columns:
Some of the commands require the use of the number. It is a reference point. Once you execute another command which generates a new set of numbers your previous numbers do not apply.
fbcmd status "Fancy this: I'm writing from the command line of Vinux!"
fbcmd streamIf you want only status updates, type:
fbcmd stream 4
fbcmd fstream "John Q. Public"Note:You must match "John Q. Public"'s name exactly. If you typed "John Public" it wouldn't match.
fbcmd wallpost "John Q. Public" "You're doing a great job representing us all."
fbcmd comment 3 "Hey, I have a comment to make on your status."
fbcmd like 6
You can find out more information about fbcmd at http://fbcmd.dtompkins.com Check the "commands" section.
Rill and Storm Dragon contributed to this article.