RaphArbuz
RaphArbuz

Reputation: 897

How to display an emoji in a Facebook Messenger bot?

I'm trying to display an emoji in a Facebook Messenger bot made in NodeJS but I cannot figure out how to turn chars like http://apps.timwhitlock.info/unicode/inspect/hex/1F382 into a string I could send via the API.

Many thanks for any help.

Upvotes: 0

Views: 1215

Answers (1)

Sri
Sri

Reputation: 1336

Some of the emojis are not supported. You will get snowflakes if you try this

decodeURI('\u2744')

whereas,

decodeURI('\uF382')

is not working.

Thanks Sriram

Upvotes: 1

Related Questions