Facebook has denounced as “extreme and disproportionate” the arrest in Brazil of Diego Dzodan, its vice president for Latin America.
He was held in custody for questioning in Sao Paulo state because a court ruled the social media site had ignored a judicial order relating to WhatsApp – the messaging service it owns.
The order is linked to a secret investigation involving organised crime and drug trafficking.
He was freed on Wednesday after nearly 24 hours in prison when an appeals court judge said he should never have been arrested as he was not under a criminal investigation.
Privacy concerns have frequently put Facebook and other internet companies at odds with Brazilian law enforcement seeking evidence in criminal cases.
Last December, a judge blocked WhatsApp in Brazil for about 12 hours after it failed to comply with two court orders to share information in a different criminal case.
In a statement about Dzodan’s arrest Facebook pointed out that WhatsApp is an operationally separate company and claimed it could not technically provide the information that the police wanted as it has no key to the encrypted messages.
“Facebook has always been and will be available to address any questions Brazilian authorities may have,” it added.
WhatsApp is extremely popular in Brazil and is used by about half the country’s population.
Brazilian courts have not shied away from targeting senior technology officials in the past.
In 2012, an elections court in Mato Grosso do Sul ordered the detention of Google’s most senior executive in Brazil after the company failed to take down YouTube videos attacking a local mayoral candidate.