RevokeApplication Using Google Charts API
I am in the final stages of converting our website to Graph API from API Rest.
The last snippet I'm missing is the old "revokeApplication" call used when the user chooses to "remove the connection" from our site.
Despite my desires to completely remove the Rest API, I thought I could just run it to do this, but it requires a session key - something is no longer stored in the Graph API.
Does anyone have any ideas?
a source to share
I understood that. I'll leave it here for those who need to know ...
The old rest api (including the revoApplication api) is still available, now with the new OAuth access_token. Just use this url: https://api.facebook.com/method/METHODNAME
For this particular call, this is POST:
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, 'access_token='.$users_access_token);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, 'https://api.facebook.com/method/auth.revokeAuthorization');
$output = curl_exec($ch);
curl_close($ch);
More details here: http://developers.facebook.com/docs/reference/rest/
a source to share