Since your best friend is already committed to someone, it's best to focus on other things. Don't dwell on him, and try not to daydream about the "what ifs." Spend time with friends and family, try new activities, and limit social media contact with him and his partner.