code: def test_facebook_channel():
      from rasa.core.channels.facebook import FacebookInput
  
      input_channel = FacebookInput(
          fb_verify="YOUR_FB_VERIFY",
          # you need tell facebook this token, to confirm your URL
          # deepcode ignore HardcodedNonCryptoSecret/test: Test credential
          fb_secret="YOUR_FB_SECRET",  # your app secret
          fb_access_token="YOUR_FB_PAGE_ACCESS_TOKEN"
          # token for the page you subscribed to
      )
  
      s = run.configure_app([input_channel], port=5004)
      routes_list = utils.list_routes(s)
  
      assert routes_list["fb_webhook.health"].startswith(
          "/webhooks/facebook"
      )
      assert routes_list["fb_webhook.webhook"].startswith(
          "/webhooks/facebook/webhook"
      )
  
imports: import logging
  import pytest
  from rasa.core import utils, run
  from rasa.core.channels.facebook import MessengerBot
  from fbmessenger import MessengerClient
label_desc: Use image node_id 1 for calling a global function with example usage: test_facebook_channel() without return types