Picture posting NOT working with facebook Graph API anymore

前端 未结 6 1848
逝去的感伤
逝去的感伤 2020-12-06 13:41

Picture posting NOT working with Facebook Graph API

The message is posted but the picture is NOT.

I am using the Graph API to post to the wall on Facebook.

6条回答
  •  渐次进展
    2020-12-06 14:00

    works for me using source parameter:

    $graph_url= "https://graph.facebook.com/me/feed?"
              . "source=" . urlencode($_POST["picture"])
              . "&link=" . urlencode($_POST["link"])
              . "&message=" . urlencode($_POST['message'])
              . "&method=POST"
              . "&access_token=" .$access_token;
    $response=file_get_contents($graph_url);
    $json=json_decode($response);
    

提交回复
热议问题