Sample NodeJS Code for Social Network Features