How to display an emoji in a Facebook Messenger bot?

1.1k views Asked by At

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.

1

There are 1 answers

2
Sri On

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