简体   繁体   中英

Private IP Solution for facebook Real-Time API

I wrote a app(by C#) that will continuously monitor(polling) my facebook-page mailbox, but I found that there is a Real-Time API for facebook-page, when I send a message to my facebook-page mailbox, facebook will notice the app that there is a new message. However, It seems that if I want to use the Real-Time API, I need a public IP. When a change occurs, the API sends an http-post request to this public-ip url, but I just have private IP(in some situations and environments). If there are any solutions to makes it works in private-up environment?

There is no solution that will let Facebook's servers reach your code with webhooks notifications without your code being reachable at a public IP address available which is listening for Facebook's notificaions

If the machine the code is hosted on has only a private IP, you'll need some sort of proxy with a public IP to forward the relevant requests to that machine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM