fbcmd is a cross-platform tool that lets you use Facebook from the command line. It supports posting a status, uploading photos, creating albums, listing profile information for friends, display events or your stream, share links and lots more.
This little utility can be useful for those who want to quickly post a status on Facebook, upload some photos and so on without having to open a browser, or to use in scripts.
Install fbcmd in Ubuntu
To install fbcmd in Ubuntu, follow the steps below (the installation instructions below are for fbcmd 1.1 stable; for 2.0 beta, the installation is slightly different):
1. Install the required dependencies:
sudo apt-get install php5-cli php5-curl
2. Download and install fbcmd using the commands below:
cd && wget https://raw.github.com/dtompkins/fbcmd/master/fbcmd_update.php
php fbcmd_update.php
sudo php fbcmd_update.php sudo
php fbcmd_update.php install
And that should complete the installation. To be able to use fbcmd, you need to give it access to your Facebook account:
- For basic access, run the following command - it should open a new tab in your default web browser, asking you to allow fbcmd to access Facebook:
fbcmd go access
- The second step is to authorize fbcmd to use Facebook in offline mode:fbcmd go auth
This once again opens a new tab in your default browser, which should display a code. Copy that code and run the following command:
fbcmd auth CODE
Replacing "CODE" with the code you've copied from Facebook.- And finally, to give fbcmd additional permissions, use the following command:
fbcmd addperm
Now everything should be ready. to see all the available fbcmd options, type the following command in a terminal:
fbcmd
You can also find a list of available commands, with explanations and examples, HERE.
Here are a few fbcmd examples:
- update your status:
fbcmd status "insert the status here"
- upload a picture to an existing album called "myalbum":
fbcmd addpic myfile.jpg myalbum "photo description"
- display your Facebook stream:
fbcmd stream
Arch Linux users can install fbcmd via AUR.
For other Linux distributions, Windows or Mac OS X, download fbcmd from HERE.
via korben.info
0 comments:
Post a Comment