Hi All,
I am facing issue during deploying my bot on facebook messenger. I created Page from my own FB Id and it’s working for me and I make it public but somehow except me bot is not responding to anyone. Can you please help me the possible issues?
And one more thing it is not showing rasa - buttons also.
Resolved !!
Facebook take some time to review app. Keep Patience.
@abhishakskilrock Can you tell me how did you connect your bot to Facebook? I did everything from the documentation and I am using ngrok to create my local server and configure my webhook with it. But I don’t see my bot in my page anywhere! Please help.
Is ngrok working now a days? I came to know that ngrok has deprecated.
Is there any message option on your page?
@abhishakskilrock Yes, ngrok is working fine. But I got it working, it seems I had to review my bot and Facebook takes some time to do it. But I am currently doing it by running the command:
python3 -m rasa_core.run -c facebook -d models/dialogue -u models/default/healthbot --port 5002 --endpoints endpoints.yml --credentials credentials.yml
Is there a way to do this using Python script? I used FacebookInput but it doesn’t seem to work.
P.S. The command is working fine
Yeah, If you want to test your bot you can do it without reviewing it on FB and yes you can run python code to run it just add
channel = BotServerInputChannel(agent, port=5056)
fb_channel = FacebookInput(fb_verify="",fb_secret="",fb_access_token="")
agent.handle_channels([channel,fb_channel],http_port=5056,serve_forever=True)
In your agent.
@abhishakskilrock
Thanks, but can you tell from where to import BotServerInputChannel() function. I can’t seem to find it in Rasa. Can you help?
Ohh, I apologise I pasted my code. Actually import BotServerInputChannel()
is for Website channel which is addon provided by scalableminds . You want to use only FB channel so you can start with fb_channel
with this line.
OK thanks a lot. I figured it out
1 Like