Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6375523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:37:35+00:00 2026-05-25T01:37:35+00:00

I am trying to delete an application notification on application load. So when I

  • 0

I am trying to delete an application notification on application load.
So when I invite my friend he gets a notification and requests “ok” and if he clicks on it then it should be deleted. How? I have tried multiple ways but haven’t succeeded.

$REQIDs=$_REQUEST['request_ids'];
$user_profile = $facebook->api('/me');
$token_url = "https://graph.facebook.com/oauth/access_token?client_id=XXXXXXXX&client_secret=XXXXXXX&grant_type=client_credentials";
$access_token = file_get_contents($token_url);
if($REQIDs){
$requests = explode(',',$REQIDs);
foreach($requests as $request_id){
$deleted = file_get_contents("https://graph.facebook.com/$request_id?$access_token&method=delete");
//not working ->> {"error":{"type":"GraphMethodException","message":"Unsupported delete request."}}
$deleted = file_get_contents("https://graph.facebook.com/".$user_profile['id']."_".$request_id."?".$access_token);
//not working ->> false
$deleted = $facebook->api($request_id."?".$access_token, "DELETE");
//not working ->> Fatal error: Uncaught GraphMethodException: Unsupported delete request.
}
}

Anyone have some ideas or see the error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:37:36+00:00Added an answer on May 25, 2026 at 1:37 am

    Take a look at this topic here >>> Topic. It explains pretty fully how to handle apprequests.

    Your code should look like this:

    $reqId = $_GET['request_ids']; // Get the id of the current request
    $requests = $facebook->api('/me/apprequests/?request_ids='.$reqId);  //Get the request. Not sure if this is correct for specific request
    $itemData = $requests[data][0][data];  //Get the data that was originally sent in the request
    
    //Some code here to do whatever with the data
    
    $delete_url = "https://graph.facebook.com/".$reqId."?access_token=".$token."&method=delete";
    
    $result = file_get_contents($delete_url);  //Delete the request so there is only one there next time.
    

    This is supposed to do the work.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application like where i can create dynamic tabs. and delete cross bar
I have a problem when trying to delete rows from my UITableView: The UITableView
I'm trying to make an experimental web application which minimises redundant data. I have
I am trying to add a new page to my RoR3 application that should
I'm trying to delete blobs in an mvc 3 application that uses azure storage.
I have an application (winforms) that downloads a file to user's temporary folder, then
Question: How to delete an application request using the facebook-actionscript-api? I am trying to
I have an issue trying to delete using hibernate. When I try to delete
I m trying to delete a record from a SQLiteDB via Android Application,This is
So this is what i'm trying to do, i have a web application that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.