We don't write code to order.
Do some simple research using Google (or your favourite search engine) and you will quickly come across the
Phonegap blog[
^] on the Facebook integration plugin - complete with readme and example apps.
Give it a go, then come back if you hit problems with your code