goto your site and delete the app there first (there was a reported issue that you can't delete the app from the site if you delete from FB first. don't know if that is resolved).
Don't touch the app on fb
drush rr
drush cc
then goto admin/config/fb/settings/app
the app still shows up there.
It's odd.

btw- deleting the app was the only way I could delete tokens.

Comments

socialnicheguru’s picture

if you choose None on the page, you get the following error:

Failed to query https://graph.facebook.com/0?access_token=blahblah.
Bad Request: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api GraphMethodException 100 (http 400)
Failed to query https://graph.facebook.com/0?access_token=blahblah.
Array
(
)
Bad Request: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api GraphMethodException 100 (http 400)
Failed to look up application 0. Bad Request: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api GraphMethodException 100 (http 400)
Failed to look up application id 0.

socialnicheguru’s picture

I think the variable fb__default_app needs to cleared once the app is deleted from the site

command line:
drush variable_delete fb__default_app

wouser’s picture

Thank you SocialNicheGuru. This is the exact error I was getting; I can confirm that deleting the App from your site as well as deleting/correcting the tokens works great. I am now error free on the tokens side but have new errors when posting a node.

Notice: Undefined variable: node in fb_post_entity_page() (line 93 of ""/sites/all/modules/fb/fb_post.module).
Notice: Trying to get property of non-object in fb_post_entity_page() (line 93 of ""/sites/all/modules/fb/fb_post.module).
Notice: Undefined variable: app in fb_post_entity_page() (line 98 of ""/sites/all/modules/fb/fb_post.module).

When I tested posting an article it still works but posted to my Facebook person page and business page at the same time with these errors. Not sure if this is something I somehow messed up but I have no idea where to start in fixing it.

socialnicheguru’s picture

when deleting an app it should also delete the access token and variables:

fb__access_token
fb__default_app: array (
'client_id' => 'xxx',
'name' => 'some name',
'namespace' => 'some_name',
)

for now use:
drush vdel fb__access_token
drush vdel fb__default_app