Use python facebook sdk and perform actions from command line
Get access token from graph-api explorer https://developers.facebook.com/tools/explorer/ .Choose all the required permissions and get the access token.
Run the fb.py python file from the command line
For the new fbtry.py To setup download from https://pypi.python.org/pypi/fb/0.4.0 and run python setup.py install To get groupid from name use https://lookup-id.com/