OP wasn't neccesarily suggestiong anything nefarious, but was curious about the technical details of how this is done -- as are many of us.
Can anyone give a basic technical explanation of how ad retargetting works, of how the information on what you looked at on Amazon makes it to wherever it is that controls what ads you see on facebook?