A judge was told Michael Ferguson is accused of using the social networking site to menace Sean Corbett.
Mr Corbett, 24, was injured when a gunman opened fire in north Belfast on Friday evening.
Up to 10 shots were fired at him as he stood beside a car in the Oldpark Road area.
Another man, 22, who was in the vehicle, was also hit. Emergency surgery was carried out on one of the victims following the shooting. Both men are in a stable condition in hospital.
Ferguson, 28, of Rosapenna Street, Belfast, denies a charge of making a threat to kill Mr Corbett sometime between 4 and 15 February.
He was also arrested on suspicion of attempted murder, but later released on police bail in relation to that.
As he appeared before Belfast Magistrates' Court on the single charge against him, his lawyer insisted he has an alibi for the night of the shooting.
Solicitor Ciaran Toner said Corbett told police he was in another part of the city at the time.
CCTV footage and independent witnesses will back his case up, the solicitor said.
Mr Toner also claimed it was "farcical" that his client has been charged with a threat to kill.
He said the allegation relates to a comment on Ferguson's Facebook account.
It was also alleged that the accused was himself the victim of a serious assault two weeks ago.
Ferguson was granted bail to stay at an address approved by police.
District Judge Fiona Bagnall told him to return to court for his next appearance on 14 March.
Police said the "reckless and callous attack" had put up to 40 people at risk, including women and children.