J query like facebook multiple friends tagging in posts,comment etc

J query like facebook multiple friends tagging in posts,comment etc

I looking for something like this for my college project.. Can any one help me with this ..