Facebook Inc. on Friday announced a $6 billion share repurchase program, its first since going public four years ago.

The buyback of Class A shares is authorized to start in the first quarter of 2017 and doesn’t have an end date. The company has about $26 billion in cash and marketable securities on its balance sheet.

The announcement comes...