Undocumented Facebook API to identify friends in photos
Yup yup! This was the screenscraping technique we used to turn Facebook into an automatic face detector: <a href="https://arxiv.org/abs/1602.04504" rel="nofollow">https://arxiv.org/abs/1602.04504</a><p>It's a giant pain to screenscrape this using 'curl'. If I recall correctly, the bounding box coordinates I wanted are set as CSS properties inside inline HTML sent to the client wrapped up in a Javascript string literal as part of Javascript served to the client as the result of an AJAX call, if memory serves correctly. To get my screenscraper working, I had to do the AJAX call, parse the literal javascript, walk the AST to find the string literal I needed, parse the HTML to find the element I needed, then use the computed CSS properties. Looks like the author of this post found a much nicer way.<p>(note: that work wasn't about recognition; it was about just finding the faces in images, not identifying them)