Is there local Accepted Tunneling Solution To Test Facebook Webhooks - webhooks

I am integrating WhatsApp with Django application that I am still running locally to send WhatsApp which is working fine.
However to receives messages from Facebook it needs a webhook that I have implemented using Django since I am still building the application locally. on my laptops I am using Tunneling solutions Ngrok and LocalTunnel to expose the application online so that Facebook can send incoming messages to my App onto my laptop but Facebook is rejecting URLs that are I created using Ngrok and LocalTunnel with error message below:
The url https://2y7y-56-897-3-457.eu.ngrok.io/apv/facebook has been identified as malicious and/or abusive.
The url https://great-finds-comes-78-673-8-897.loca.lt/apv/facebook has been identified as malicious and/or abusive.
I have two questions:
Has anyone been successful using Ngrok and Localtunnel while building locally on Facebook webhooks?
what other tools are there that are available on windows to achieve this? I don't have a dedicated domain name yet and dedicated cloud/online platform where I can host the app yet.
The other alternative solutions I have seen that have been mentioned, it's the Ultrahook though the client is available as a Ruby gem that I have failed to get running on windows:
I was following this question: Can i use localhost as a URL Callback in a messenger webhook

Related

IFTTT Webhooks doesn't allow localhopst

I am trying to build something that will allow IFTTT to send a web request to a localhost (127.0.0.1:8080) using webhooks. I have a web server running on my android device for this reason. The web server will then parse the request and forward this to the Tasker application as an event. My Kronaby watch has the ability to activate an IFTTT applet with a button push. In order to expand the possibilities, I am trying to integrate Tasker via a webhook.
The current issue I have is that webhooks doesn't allow requests to 127.0.0.1 per the error I am getting.
In the end my question would be how I could get IFTTT to send an action to Tasker.
How would the IFTTT service - running on their servers know how to resolve your localhost (not running into their servers)?
I think you need to expose your server's IP address to (eg) IFTTT. Probably scary.

How to create a HTTPS tunnel on my vps for my twitch bot event listen

I found an example on how to use the twitch EventSub webhooks(https://github.com/twitchdev/eventsub-webhooks-node-sample/blob/main/index.js) but i'm struggling with finding out how to setup it up without having to install ngrok or other apps on my PC since i have a vps where i host the bot. I understood the GET method but POST is a bit difficult for me.
Hope i explained it well enough for someone to understand.
Twitch EventSub at time of writing only offers a "Webhook transport"
So you should be able to set this up no problem on your VPS, since your VPS is web accessabile.
To test this locally on your PC yes you will need a proxy/tunnel such as NGROK to make your PC web accessable.
A "webhook transport" (to over simplfy) operates in the same way a login from on a Website does. You fill in the form and hit submit, and the form is POST'ed to the server.
Webhook's it's the same thing, except the data isn't POST'ed as a form but a JSON blob in the body.
So you can use anything capable of receiving a HTTP POST. There are just a few NodeJS examples like the one you have linked kicking about.
TLDR: unless you are testing, skip setting it up on your PC and start with setting it up on your VPS, as the VPS doesn't need a tunnel, apache/nginx are the SSL Terminator that passes to your Node script, if you use a node script link the linked exmaple in the OP

Call an API from web browser to the localhost of Electron app via WebSocket

I've made an Electron application as a server to receive API requests on the user's PC. Then I've allowed users to request API from the browser (not only on the same PC) to Electron application localhost server. To make it work, I've used Ngrok as a tunnel to publish my local port, but because of the limitation for free users, I could not use it anymore.
I'm aiming to solution calling localhost via Web Socket, but I could not found anyone attempted on the Internet.
Could you please give me some idea to deal with it? Thanks in advance.

Node.js Bot Framework linux hosting machine traffic setup

I have created the very basic bot using the Node.js option as is in the steps here. It is running and the Bot Channels appID and Pass from Azure is properly in the code.
I have also (of course) filled the messaging endpoint properly.
Yet when I try to send a message from the webchat the bot doesn't receive.
So obviously, I have to set the machine networking somehow, I have already allowed the port 8080 but that didn't help. What else should I do?
I didn't find any documentation about how to set the machine hosting Microsoft Bot Framework bot, else I wouldn't be asking here. Any ideas? I know most of the people use their own hosting so someone must know how to get it connected.
I have had the Restify setup wrong. There are no examples as to how to setup restify for the bot in the Microsoft documentation.

How is serviceUrl of a bot (created using MS bot framework) decided

I recently moved my MS bot code (created using MS bot framework into my new laptop). However, in emulator, there is a difference in behavior in two laptops.
The bot is hosted in azure cloud as an app service.
In my old laptop, when I send a message, the serviceUrl is set to an ngrok URL (I dont know how, that what I am trying to figure out).
In my new laptop, I am not able to test the bot in new laptop and emulator keeps on complaining
[03:51:09] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:09] Connecting to bots hosted remotely
[03:51:09] Edit ngrok settings
[03:51:09] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:09] Connecting to bots hosted remotely
[03:51:09] Edit ngrok settings
[03:51:11] -> POST 200 [conversationUpdate]
[03:51:11] -> POST 200 [conversationUpdate]
[03:51:15] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:15] Connecting to bots hosted remotely
[03:51:15] Edit ngrok settings
[03:51:16] -> POST Request to 'https://something.azurewebsites.net/api/messages' failed: [500] Internal Server Error
I have edited ngrok settings to give it a path to ngrok exe.
Can any one tell me how the service url is decided? I am not sure why it works on one laptop but not on the other one.
Thanks
First ensure you are running a version of ngork 2.1.18 or newer, then , Open the emulator's App Settings dialog, enter the path to ngrok, select whether or not to bypass ngrok for local addresses, and click Save.
I'd recommend checking the following link, it has more details about the setup.

Resources