This is about data Facebook, like most web sites, does store (site access logs including IPs). Though I wonder how long they store these kind of logs; different jurisdictions may have both minimum retention times as well as maximum retention times for personal data such as IPs.
If this is technically feasible I can't say, but I don't imagine FB creating a precedent so that any state authority can require tracking of specific users. IMHO, this solution wouldn't take so long to start being exploited.
Do you know what "tracking" entails? That could mean anything from revealing message contents to revealing social networks or tracking a user's geoposition or reporting all the IMSI/IMEIs associated with any given WhatsApp user.
One case wants them to introduce a deliberate backdoor into their software. Negating the entire point of their recent move to end-to-end encryption and a major reason they're such a big player in the communication service market.
The other case was a warrant for, "What IP addresses accessed this account?".
The second one is trivial to comply with and to compile. The first is going to require them to alienate most of their customers, destroy their business, and spend a few man-weeks (minimum) to put together.
EDIT: That was just straight snark. Sorry.
Want a better response? I've seen your other comments regarding WhatsApp/Facebook on past related discussions. If you really think Brazil is being held back by these companies (WhatsApp in particular) make a competitor. Win over the Brazilian market. And deliberately make it insecure so your government can eavesdrop on any conversation. Good luck at keeping that market.
EDIT: FB eavesdrop to US gov didn't stopped their growth. Actually, I would bet that it helped.