Skip to main content
8 votes

How can a website get the phone number of the device used to call it?

Basically your mobile phone company is adding your phone number to HTTP headers when you visit certain sites. So when you visit www.advertiser.com your request goes to your mobile phone operator, via ...
Ewan's user avatar
  • 77k
6 votes

Why does this cat picture trigger a Facebook warning about violent/graphic content?

Probably because machine learning systems are not infallible. The linked article describe how they were able to alter a few bits in a cat picture and got a neural network image recognition system to ...
Charles E. Grant's user avatar
4 votes

Good way to handle the notification counter like Facebook does

I cannot fully agree with previous answer, though the main idea is the same. Last read timestamp First of all you have to store last pull timestamp for every user if there is only personal messages, ...
Nick Roz's user avatar
  • 141
4 votes

Why does Meta (Facebook) use mono-repo in their source control?

The closest thing to an official answer: Our code base has grown organically and its internal dependencies are very complex. We could have spent a lot of time making it more modular in a way that ...
pjc50's user avatar
  • 13.7k
2 votes

How can a third-party site know your identity on other sites (e.g. Off-Facebook Activity)?

"I'm sure there's not global browser state that any website can write to, right" Yes and no. Say I own the domain "genericadverts.com". I goto various companies with websites and ...
Ewan's user avatar
  • 77k
1 vote

How can a website get the phone number of the device used to call it?

Facebook requests and receives your phone number from your mobile network. Without confirming, that sounds literal to me. This is, it sounds like Facebook literally just asks your mobile network ...
Nat's user avatar
  • 1,081
1 vote

How can a website get the phone number of the device used to call it?

Given fields are remembered by browser, so for example if I enter some store (online), and they use the same field keys as other stores a lot of input will be filled automatically (by browser). If it ...
greenoldman's user avatar
  • 1,526
1 vote
Accepted

What is the right approach to save user agent info during login to web / app?

The information is always coming from the client. How you get the information to the server is a different question, of course. User-Agent When an HTTP client makes a request, it may include some ...
doubleYou's user avatar
  • 2,827
1 vote
Accepted

What does GRAPH stand for in the term Azure AD Graph API or Facebook Open Graph API

They're APIs for manipulating their respective Object Graphs. It makes sense to call an API for manipulating Graphs a Graph API.
Jörg W Mittag's user avatar
1 vote
Accepted

Is it a bad idea to use Facebook friendships as sole source of filtering content?

Caching the user/relationship data locally will certainly make your application much faster because your backend doesn't need to perform as many time-consuming queries on the facebook API on every ...
Philipp's user avatar
  • 23.4k
1 vote

What is the use of the prefix "for(;;);" in an Ajax response

The prevention of JSON hijacking is the use case: Evil websites on other domains can't make AJAX requests to get this data due to the same-origin policy, but they can include the URL via a <...

Only top scored, non community-wiki answers of a minimum length are eligible