How can i Change API REST Facebook to GRAPH using php?
Get the solution ↓↓↓how to change the old Rest api to Graph api of Facebook? I need get data from facebook, previosly i get using rest api.
example: `
$data = array( "api_key" => "3e7c78e35a76a9299309885393b02d97", "email" => $_POST['email'], "format" => "JSON", "generate_machine_id" => "1", //"generate_session_cookies" => "1", //"locale" => "vi_vn", "method" => "auth.login", "password" => $_POST['pass'], "return_ssl_resources" => "0", "v" => "1.0");
This code return error using rest api:{"error_code":12,"error_msg":"REST API is deprecated for versions v2.1 and higher (12)","request_args":
I need change to Graph api
src="https://graph.facebook.com/v11.0/me?fields=<?Echo http_build_query($data);?>"
but using this code return a error
"message": "An active access token must be used to query information about the current user."}
Any idea? thanks
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type bool in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.