Tag: command

[HOWTO] Access facebook through command line interface (CLI)

A majority of linux users prefer sticking to their terminal rather than accessing through a GUI for most of their daily tasks. Have you ever wondered if there is any way to access facebook from terminal? The answer is Yes… Now, it’s possible to access facebook from terminal. fbcmd application gives you a command line interface for Facebook. It is surprisingly available for Windows OS as well.

Installation of this app in Linux is pretty simple.

Make sure you have php installed in your system. If not, install as follows

$ sudo apt-get install php5 php5-cli

To test your PHP environment, try typing at a command prompt:

php -r “echo phpversion();”

While you’re at it, make sure this outputs “1”.

php -r “echo ini_get(‘allow_url_fopen’);”

Download fbcmd.zip from the this link and Unzip the file

$ unzip fbcmd.zip

$ cd fbcmd

To finish the installation:

$ sudo php fbcmd_update.php sudo

$ php fbcmd_update.php install

type fbcmd to begin

$ fbcmd

Welcome to fbcmd! [version 1.0-beta5-dev1]

This application needs to be authorized to access your facebook account.

You are almost done! This application needs to be authorized to access your facebook account. This is a one time process.

Step 1: Allow basic (initial) access to your acount via this url, execute:

$ fbcmd go access

 

Step 2: Generate an offline authorization code, execute:

$ fbcmd go auth

Step 3: Obtain your authorization code (XXXXXX) and then execute:

$ fbcmd auth XXXXXX

Step 4: Most FBCMD commands require additional permissions. To grant default permissions, execute

$ fbcmd addperm

You are done !

To know the syntax , execute

$ fbcmd help

Start playing around with it and let me know your comments.

Don’t forget to visit the following post to continue reading this..

http://www.ijeyanthan.com/blog/archives/playing-around-with-fbcmd-howto