Hoffman sees long-term hope for Facebook and Yahoo investors