John 17:20-23, “20 “I do not pray for these alone, but also for those who will believe in Me through their word; 21 that they all may be one, as You, Father, are in Me, and I in You; that they also may be one in Us, that the world may believe that You sent Me. 22 And the glory which You gave Me I have given them, that they may be one just as We are one: 23 I in them, and You in Me; that they may be made perfect in one, and that the world may know that You have sent Me, and have loved them as You have loved Me.”
This last statement is such a powerful statement, but that statement alone misses the main point. The main point Jesus is making is the unity between Him and The Father, and now us. Us being loved by the Father as much as He loves Jesus is the fruit of the oneness, we have with Him. In verse 20, Jesus is praying this for those who believe in Him. Believing in Jesus makes the rest of the passage a reality. I am not saying God does not love the world, this is a different thing. This passage is talking about the unity between Jesus and The Father and that this unity can become a reality in our own lives.