[facebook] Extract all the formats (closes #5037)