Refactored the facebook calls, also added php code to get the ids of the friends. TBD : Show the friend threads