Facebook, it seems, doesn’t always practice what it preaches.

For years, Mark Zuckerberg, the chief executive of Facebook, has extolled the virtue of transparency, and he built Facebook accordingly. The social network requires people to use their real identity in large part because Mr. Zuckerberg says he believes that people behave better — and society will be better — if they cannot cloak their words or actions in anonymity.

“Having two identities for yourself is an example of a lack of integrity,” Mr. Zuckerberg has said.

Now, Facebook is being taken to task for trying to conceal its own identity as it sought to coax reporters and technology experts to write critical stories about the privacy implications of a search feature, Social Circle, from its rival, Google.

The plan backfired after The Daily Beast revealed late Wednesday that Facebook, whose own privacy practices have long been criticized, was behind the effort. It didn’t help that some of the technology experts who were encouraged to criticize Google dismissed the privacy concerns around Social Circle as misplaced.

“Doing this anonymously is an obvious contradiction of Facebook’s oft-stated values,” said David Kirkpatrick, the author of “The Facebook Effect,” a book about the company. “It feels hypocritical.”