Hello,
I deleted an app from facebook.
After that I could not delete the application from drupal.
Failed to query https://graph.facebook.com/...........................?access_token. Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Failed to query https://graph.facebook.com/...........................?access_token.
Array
(
)
Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Failed to query facebook for url argument ........................... Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Failed to query https://graph.facebook.com/...........................?access_token. Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Failed to query https://graph.facebook.com/...........................?access_token.
Array
(
)
Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Failed to query facebook for url argument ........................... Bad Request: Unsupported get request. GraphMethodException 100 (http 400)
Comments
Comment #1
Dave Cohen commentedThere's a way to make drupal skip validation when delete is pressed. I just have to look up what it is. I hope to fix this soon but if anyone wants to submit a patch it would save me some time.
Comment #2
ladybug_3777 commentedI also noticed there is no delete button for Access Tokens. I'm assuming this is a similar issue and is waiting for development as well? If I have time I'll try and look into the code and see what's going on.
Comment #4
Dave Cohen commentedTurns out, deleting an app was entirely broken. I fixed it partially, meaning now you can delete an app if it is not yet deleted from facebook.
To make it work when the app is deleted from facebook will require more extensive changes. I didn't realize at first this was broken in more ways than one.
Comment #5
ladybug_3777 commented*thumbs up* for progress though! I was hoping to look into this but just can't find the time lately! Thanks for moving it in the right direction.
Comment #6
ladybug_3777 commentedDid this get removed from the latest dev version? I'm getting the following error when I try and delete an application:
PHP Fatal error: Call to undefined function fb_app_admin_form_delete_submit() in C:\inetpub\wwwroot\my_drupal_root\includes\form.inc on line 1514
Comment #7
Dave Cohen commented@ladybug_3777, looks like you're using version 3.x and not 4.x. Am I right?
Do you find that function on line 321 of fb_app.admin.inc?
Comment #8
ladybug_3777 commentedNo I'm using the dev version of 4. I don't have a file named fb_app.admin.inc in this version that I can see.
Comment #9
ladybug_3777 commentedOK weird, I just did a fresh reinstall and now delete is working fine on my 4.x dev version. I wonder if my other version was screwed up somehow? I remember when I left my comment a few months ago it was working fine, so I must have had a version issue on my side.
Now that I think of it, I bet I had an old copy of the 4.x dev and the 3 version from a few months back and I accidentally copied it to the wrong spot thinking it was the newer dev. User error! Thanks!!!
Comment #10
Dave Cohen commentedGlad you sorted it out.