I am trying to retrieve facebook uesr ID via graph from below code
$post = "https://graph.facebook.com/me?access_token=".$access_token;
$response = file_get_contents($post);
I get the following error:
Warning: /me cannot be read [file_get_contents] https://graph.facebook.com/me?access_token=AAIvGrJsBAI3nLAbfaqyh8NExN5e21yKCvJAjVOGJ9ira1RdCDHRFszktHnDCY44urQtxdBHMKEsX1K7QAUWXSYF5ip3l68JI8xKeopjYdssds
But when i try to access the above graph URL via browser, its working correctly. So my access token is valid.
Note: I am using google app engine so I can't use cURL.