The social network takes a tip from Google and Facebook.