In my anecdotal experience, FB is using non-logged in google search results to select which ad to show you. I assume google sells those to FB, based on IP address.
But, my YouTube and Google search and ads, whole logged in, are based on what I do while logged in only. I might be naive but I have not seen correlation between my logged-in and my non-logged-in life within google products.