Facebook has access to your Google search history because you logged in to both services using the same account. Facebook can see which websites you visited after searching for something on Google, and it uses this information to personalize your Facebook experience. For example, if you searched for a new pair of shoes on Google, Facebook might show you an ad for a nearby shoe store.