Sachin
Member • Mar 6, 2012
Receive facebook deauthorize app callback
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.
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.