The social networking site has been hit by a legal complaint that claims it has failed to gain users' permission to distribute their information.