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

Dave Cohen’s picture

Issue tags: +get involved

There'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.

ladybug_3777’s picture

I 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.

  • Commit 226a7e9 on 7.x-4.x by Dave Cohen:
    partial fix for #2191687 by Dave Cohen: now possible to delete an...
Dave Cohen’s picture

Turns 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.

ladybug_3777’s picture

*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.

ladybug_3777’s picture

Did 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

Dave Cohen’s picture

@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?

ladybug_3777’s picture

No 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.

ladybug_3777’s picture

OK 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!!!

Dave Cohen’s picture

Glad you sorted it out.