Facebook has data-sharing partnerships with at least four Chinese electronics companies, including a manufacturing giant that has a close relationship with China's government, the social media company said on Tuesday.

The agreements, which date to at least 2010, gave private access to some user data to Huawei, a telecommunications equipment company that has been flagged by American intelligence officials as a national security threat, as well as to Lenovo, Oppo and TCL.

The four partnerships remain in effect, but Facebook officials said the company would wind down the Huawei deal by the end of the week.

Facebook gave access to the Chinese device-makers along with other manufacturers — including Amazon, Apple, BlackBerry and Samsung.

The deals gave Facebook an early foothold in the mobile market starting in 2007, before stand-alone Facebook apps worked well on phones, and allowed device-makers to offer some Facebook features, such as address books, "like" buttons and status updates.

Facebook officials said the agreements with the Chinese companies allowed them access similar to what was offered to BlackBerry, which could retrieve detailed information on both device users and all of their friends — including work and education history, relationship status and likes.

Sen. Mark Warner, D-Va., pointed out that concerns about Huawei were not new, citing a 2012 House Intelligence Committee report on the "close relationships between the Chinese Communist Party and equipment makers like Huawei."

"I look forward to learning more about how Facebook ensured that information about their users was not sent to Chinese servers," Warner said.