(Adds planned Zuckerberg appearance, attempt to reach Cambridge Analytica, background)
SAN FRANCISCO, April 4 (Reuters) - Facebook Inc said on Wednesday that the personal information of up to 87 million users may have been improperly shared with political consultancy Cambridge Analytica, up from a previous news media estimate of more than 50 million.
Most of the 87 million people whose data was shared with Cambridge Analytica, which worked on U.S. President Donald Trump's 2016 campaign, were in the United States, Facebook Chief Technology Officer Mike Schroepfer wrote in a blog post.
Facebook said it was taking steps to restrict the personal data available to third-party app developers. (https://bit.ly/2Ejpktb)
The world's largest social media company has been hammered by investors and faces anger from users, advertisers and lawmakers after a series of scandals about fake news stories, election-meddling and privacy.
Last month, Facebook acknowledged that personal information about millions of users wrongly ended up in the hands of Cambridge Analytica.
Facebook Chief Executive Mark Zuckerberg will testify about the matter next week before the U.S. House Energy and Commerce Committee, the panel said on Wednesday.
Shares in Facebook were down 1.4 percent on Wednesday to $153.90. They are down more than 16 percent since the Cambridge Analytica scandal broke.
The previous estimate of more than 50 million Facebook users affected by the data leak came from two newspapers, the New York Times and London's Observer, based on their investigations of Cambridge Analytica.
Schroepfer did not provide details of how Facebook came to determine its higher estimate, but he said Facebook would tell people if their information may have been improperly shared with Cambridge Analytica.
A representative from Cambridge Analytica could not immediately be reached for comment.
The British-based consultancy has denied wrongdoing. It says it engaged a university professor "in good faith" to collect Facebook data in a manner similar to how other third-party app developers have harvested personal information.
The scandal has kicked off investigations by Britain's Information Commissioner's Office, the U.S. Federal Trade Commission and by some 37 U.S. state attorneys general.
Nigeria's government will investigate allegations of improper involvement by Cambridge Analytica in that country's 2007 and 2015 elections, a presidency spokesman said on Monday.
(Reporting by David Ingram; Editing by Susan Thomas and Lisa Shumaker)