Class FacebookWebhookController

java.lang.Object
com.bytedesk.social.facebook.FacebookWebhookController

@RestController @RequestMapping("/webhook/facebook") public class FacebookWebhookController extends Object
  • Field Details

  • Constructor Details

    • FacebookWebhookController

      public FacebookWebhookController()
  • Method Details

    • verifyWebhook

      @GetMapping public org.springframework.http.ResponseEntity<String> verifyWebhook(@RequestParam("hub.mode") String mode, @RequestParam("hub.verify_token") String verifyToken, @RequestParam("hub.challenge") String challenge)
    • handleWebhook

      @PostMapping public org.springframework.http.ResponseEntity<String> handleWebhook(@RequestBody FacebookWebhookEvent event)