Receive facebook deauthorize app callback

Sachin Jain

Sachin Jain

@sachin-0wuUmc Oct 26, 2024
Hey CEans,
I want to write a java (spring controller) where i can receive callback url sent by facebook whenever a user de-authorizes my app.

I have specified the correct URL in my app and have read the documentation provided on fb.
But i don't know how to write a controller file.
I have tried this.

public class RemoveAppController {

private static Logger log = LoggerFactory.getLogger(RemoveAppController.class);

@RequestMapping(value="/deauthorizehandler.htm", method=RequestMethod.POST)
public void removeApp(HttpServletRequest request) throws Exception {
log.info("DeAuthorize Callback getting successfully");
}
}


Am i somewhere wrong ?
Because this controller is not getting executed.
URL i have specified in my app is #-Link-Snipped-# which i have mapped.
Please help.

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform