Zynga's finance chief is leaving the troubled online game company to join Facebook.

San Francisco-based Zynga Inc. said Tuesday that David Wehner will take a "senior finance position" at the social networking company.

Chief accounting officer, Mark Vranesh, is replacing Wehner as chief financial officer, returning to the post he left in 2010.

Zynga is also reaffirming its guidance. The company still expects adjusted earnings of 2 or 3 cents per share. Analysts polled by FactSet expect 3 cents.