Gửi tin nhắn: Optimal Resource Allocation Over Time and Degree Classes for Maximizing Information Dissemination in Social Networks