Access Facebook through Linux Terminal !

                                                                                                                                                 -muskan
This article is mainly for LINUX Users :)
I think title was quite persuading for you to read this article. :)
I think it seems interesting to access your favourite website through Terminal :D
Following are the steps :-
Open terminal by ctrl+alt+t(press all the three keys together)
1)Now install php5 on your system by following command :-
$ sudo apt-get install php5-cli php5-curl 2)Now verify if PHP5 is installed with curl support(cURL is a computer software project providing a library and command-line tool for transferring data through various protocols).
$ php -r 'echo phpversion();' 3)It installation is succesful,then result will come as :-
$ php -r 'echo phpversion();' (command)
5.5.3-1ubuntu2.5 (Output) 4)Next command is :-
$ php -r 'phpinfo();' | grep -i curl
5)Now download fbcmd_update.php from its official source, which will be used to install fbcmd.
6)Now run the following command :-
$ php fbcmd_update.php (this keep your fbcmd version up-to-date)
7) go ahead and run the following two commands, which will install fbcmd in the default installation location
$ sudo php fbcmd_update.php sudo
$ php fbcmd_update.php
8)It's time for you to to grant FBCMD basic access to your Facebook Account which is done with following command :-
fbcmd go access
9)Next step is to give authorisation to use your fb accont :-
fbcmd go auth
10)After above command ,You will be redirected to a browser page where you will recieve code,give that code in following command (in place of XXXXXX) :-
fbcmd auth XXXXXX
11)To verify the permissions granted on fbcmd, run the following command, which will show you permission status.
$ fbcmd showperm
12)To update status ,command is :-
$ fbcmd post "This is post through command prompt!"
13)To post a message on friend's wall:
$ fbcmd target friend_name post "Hello, Friend!"
eg :-
$ fbcmd target prity post "Hello, prity!"
14)For friendsfeed (status of your friends)
$ fbcmd fstatus
15)To see pagesfeed :-
$ fbcmd stream
16)To comment on a story #5 found in your friendsfeed:
$ fbcmd comment 5 "This is funny"
17)To like a story #3 that appears in your friendsfeed:
$ fbcmd like 3
This was all about acessing facebook from command line.If you face any problem ,then please let us know either through comment or contact us .:) We will be more than happy to solve your problem. :)

No comments:

Post a Comment

SAY HELLO!!