Brain storming - PoshHsu/0xf8c3b00k GitHub Wiki

Scenarios

Show news

./0xfb news 30 # Latest 30 news.

Show friend's wall

./0xfb wall p1234 30 # Show latest 30 news of friend whose id is p1234

Add friend

./0xfb addfriend mark # Ask user whose id is mark to become my fb friend.

Post to wall

./0xfb post "Good morning"

Upload a set of photos

./0xfb uploadphoto --to "Tour in San Francisco" --file *.jpg

Resizing before photo uploaded

./0xfb uploadphoto --to "Tour in San Francisco" --file *.jpg --size-limit 800x800

Upload and use photo titles

./0xfb uploadphoto --to "Tour in San Francisco" --file *.jpg --title title.json

Where title.json is a json file that maps description to file name.

{
  ['P1092001.JPG'] = 'Cable car museum',
  ['P1092002.JPG'] = 'Golden gate bridge'
}

Interactive mode

./0xfb interactive

Command line format

./0xfb [options] work-mode [parameters]

Runtime resource

JSON formatted runtime configuration file.

~/.0xfb