0

In the following code i get error failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request

        $url = "https://graph.facebook.com/$orderId";
        $url_with_token = $url . "?access_token=$token";
        $result= json_decode(file_get_contents($url_with_token));

Please let me know where I am going wrong

user1871640
  • 441
  • 2
  • 8
  • 18

1 Answers1

0

Just add two lines in your php.ini file.

extension=php_openssl.dll

allow_url_include = On

its working for me.

Ritesh Chandora
  • 8,382
  • 5
  • 21
  • 38