After migration to v2.2 API, "Deauthorize" functionality of this module didn't work as needed. It remove connection to fb account on Drupal side, but not remove any permission form app on FB side. In FB error log I have noticed new error:

auth.revokeauthorization		
Unavailable in this version

"Deauthorize" was implemented by REST call. But FB REST API was deprecated. https://developers.facebook.com/blog/post/616/
It replaced with Graph v2.2 call

DELETE /v2.2/me/permissions HTTP/1.1
Host: graph.facebook.com

https://developers.facebook.com/docs/graph-api/reference/v2.2/user/permi...

Comments

AlexKirienko’s picture

Issue summary: View changes
mrded’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
AlexKirienko’s picture

https://developers.facebook.com/docs/apps/upgrading#restapiv21

REST API

The previously deprecated REST API has been completely removed in v2.1, and all apps still using it must migrate to using Graph API.

AlexKirienko’s picture

Status: Active » Needs review
StatusFileSize
new1.9 KB

Please check attached patch.

AlexKirienko’s picture

StatusFileSize
new2.04 KB

patch #4 works, but #5 works better.

mrded’s picture

Title: Update to FB API v2.0 - Deauthorize function not working » Update to FB API v2.x - Deauthorize function not working
Status: Needs review » Reviewed & tested by the community

#5 looks good

  • AlexKirienko committed d13876a on 7.x-2.x
    Issue #2454173 by AlexKirienko: Update to FB API v2.x - Deauthorize...
AlexKirienko’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to 7.x-2.x dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.