我收到信息给Facebook使用的file_get_contents()如何使用卷曲在Facebook的图形API请求
但有时我接收到错误图形API。
我发现必须使用cURL而不是file_get_contents()。
问题是,我不知道如何使用cURL与我需要通过的URL。
如果我转换
file_get_contents($graph_url);
成卷曲,会是怎样的代码?
这里是$ graph_url
$graph_url= "https://graph.facebook.com/me/photos?"
. "url=" . urlencode($photo_url)
. "&message=" . urlencode('')
. "&method=POST"
. "&access_token=" .$access_token;
内容阅读如何提出请求卷曲文档。 – 2013-03-04 14:17:38