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 7565253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:06:25+00:00 2026-05-30T14:06:25+00:00

I want to send app request to user of app Facebook. https://graph.facebook.com/myid_facebook/apprequests?message= test &data=

  • 0

I want to send app request to user of app Facebook.

https://graph.facebook.com/myid_facebook/apprequests?message=test&data=INSERT_STRING_DATA&access_token=XXXXXXX&method=post

I’ve tried using curl, but it’s not to work …

This is my source code

$app_id = 'XXXXXXXXXX';
$app_secret = 'XXXXXXXXXXXXXXX';

$apprequest_url = "https://graph.facebook.com/endif.tc" .
        "/apprequests?message=’pak nurrohman memberi anda tugas’" .
        "&data=’INSERT_STRING_DATA’&access_token=" .
        $this->facebook->getAccessToken() . "&method=post";

$result = file_get_html($apprequest_url);
echo ("Request id number: " . $result['request']);

file_get_html is function to load another page using curl.

and this error is:

"failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request"

I want to execute this graph on php side..is there any solution for me?

I’m sorry, my bad english.:)

  • 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-30T14:06:27+00:00Added an answer on May 30, 2026 at 2:06 pm

    I believe this is because of the url and the fact you cant just method=post.

    "https://graph.facebook.com/endif.tc"
    

    Use This Code Instead For A Proper URL

    $user_id = 'endif.tc';
    $data = 'test';
    $message = 'test request';
    $url = "https://graph.facebook.com/".urlencode($user_id)."/apprequests" .
        "?message=".urlencode($message).
        "&data=".urlencode($data).
        "&access_token=".$this->facebook->getAccessToken();
    

    The other issue may be that file_get_contents does not POST the data to the page. If you wish to post the data you might need to use the cURL library.

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

Sidebar

Related Questions

I'm working on a socket app in Ruby Shoes, and want to send a
I want to create a PHP app that can send text messages ; There
I have an app where we want users to be able to send us
For testing purposes I want send mail to my localhost user account rather than
I want to send a message to a thread and handle it in the
I'm using Django with Google's App Engine. I want to send information to the
I am making an android app that publishes facebook posts. I want it to
I want that my app shows an actionsheet when the user presses on the
I've got a Facebook app which I've added to a Facebook page. I want
I've installed this django-contact-form app. When I want to send an email to my

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.