Nielsen is getting more social.

The media research firm plans to announce on Wednesday that it is working with Facebook to include conversations about TV programs on the social network in its measurement system. Now called “Social Content Ratings,” the metric will also include TV-related chatter on Twitter.

The deal is part of a broader effort at Nielsen to improve its methods for measuring how people watch television today.

The company has faced harsh criticism in recent years from TV and advertising executives, who complain that Nielsen has failed to keep pace with the digital transformation that has reshaped the industry. As a result, they say, it is not accurately capturing the real audience for shows. Last week, for instance, television network executives expressed frustration over the lack of measurement of programs on the streaming service Netflix.

Nielsen has tried to fight back, introducing a series of services that track digital viewing. About three years ago, Nielsen struck a deal with Twitter to measure television-related conversations on Twitter. For example, the companies released data for the Republican presidential debate on Fox Business Network last week. The program elicited 1.2 million Twitter messages, written by 247,000 unique authors, that were seen by a total of 6.4 million people.