Ruby CGI script <=> Java chatbot server - need to run some Javascript code for FaceBook Analytics


I have this chatbot set up:

<a href="" title=""></a>

and it stopped working sometime recently for NEW chats - I can't work
out why Messenger continues to work for my test FB account but not for
new chatters - there are alerts to get the app reviewed again although
under "App Review" it says: "Your app is currently live and available to
the public."

Anyway, I want to add this Javascript stuff to the Ruby script somehow
so the FB analytics will work so I might have a better chance of finding
out why NEW chats are not making it to the Ruby script . .

Is it possible?