News for hackers. Stuff that matters.
Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by theweirdone on Tuesday August 29, 2017 @08:35AM (#15123835)
As others have pointed out, it's an advertising technique called retargeting. Here are some of the technical details of how exactly it is done(Facebook's implementation might differ somewhat from this, but overall concept is same)

/* DSP - Demand side partner (Entity which works with someone who wants to show their ads) SSP - Supply side partner (Entity which works with some who have potential space on web to show ads) /

1. When you visited Amazon.com, one of the DSP associated with them drop a cookie on your system to uniquely identify you as a user. Let's call it cookiexyz. 2. When you end up on Facebook.com, their SSP also drops a cookie on you, let's call it cookieabc. 3. Now only thing remaining is to determine cookiexyz and cookieabc are same users. 4. To do that, SSP requests a bid from Amazon's DSP(among others). While doing that, it calls one of the DSP's url(bid tag) which sends cookiexyz in request headers and sends cookieabc in query params. This uniquely profiles the user which DSP stores in their system and next time user requests a bid again, they can serve them ads based on preferences based on cookiexyz. In other words, info that your looked at some shoes on Amazon.com

/ disclaimer: I work as a dev in one of the Advertising partner for Yahoo and Bing. */

Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by oelmekki on Tuesday August 29, 2017 @09:21AM (#15124043)
Thing is, OP mentions using two different browsers, which is why it's surprising.

I guess there's still the possibility that a cookie was added months before that and that "tainted" browsing was forgotten. But it's still worth wondering if some other identification mechanism could be at play.

Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by theweirdone on Tuesday August 29, 2017 @10:54AM (#15124684)
Or, facebook(https://www.facebook.com/business/learn/facebook-ads-reach-e...) matches this cookie to your fb account in their system. Then making this information available across the browsers is trivial.

Now, to actually think of implementation, I can't even imagine the amount of data they need to store(and clear in LRU manner) to make this work.

Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by saluki on Tuesday August 29, 2017 @02:13PM (#15126370)
I'm sure they are tracking/matching by cookies, ip, FB logins, geolocation, etc . . . by combining those it's pretty easy to serve up the right ad, most of the time.
Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by dhimes on Tuesday August 29, 2017 @10:16AM (#15124405)
It's weirder that that. I was notified via a Facebook ad that my Navionics subscription to charts from Asia expired. I only use Navionics as an ios App.
Re:Ask HN: How does Facebook know what I buy on Amazon or vi... by shostack on Thursday August 31, 2017 @04:49PM (#15143793)
That's not weird. Navionics presumably had your email address. They then likely uploaded that as part of a list of customers into what FB calls a "Custom Audience List" and promoted some post to that audience.