Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook account delink or deauthorize facebook app and check status of linking from facebook app

My website application having feature login with Facebook login. And for which my app is present on Facebook. Login with facebook is working fine.

But application have feature of linking and unlinking facebook account to Facebook app.

  • How to check FB account is linked with specific FB app or not?
  • And how to unlink FB account from specific FB app if linked (On that user's request )?

("Linked" means we select "Allow" to FB app on request)

like image 968
Somnath Muluk Avatar asked Dec 02 '25 08:12

Somnath Muluk


1 Answers

With the new Graph there is a documented way to deauthorize (I've tested it in the Graph API explorer and it works). Send an HTTP Delete command to "me/permissions" with a valid access token. Not only will it invalidate the access token, but it also removes the app from the user's list of auth apps. This requires the user to authorize the app again (going thru the permissions screens) to use it. Happy coding!

like image 174
DMCS Avatar answered Dec 04 '25 20:12

DMCS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!