打开Graph cURL命令行 --> php?
我快要疯了。我需要以下 cURL 命令行作为 PHP 脚本,当用户访问某个页面时自动触发“读取”操作:
curl -F 'access_token=XXXXXXXXX' \
-F 'article=<?php the_permalink(); ?>' \
'https://graph.facebook.com/me/lemberg_dk:read'
我花了过去 24 小时研究 cURL 并试图了解如何将其转换为 PHP,但我根本就是无法掌握它。
这里有人可以帮助我吗?
I am going nuts about this. I need the following cURL command line as a PHP script, that automatically triggers a "read" action when a user visits a certain page:
curl -F 'access_token=XXXXXXXXX' \
-F 'article=<?php the_permalink(); ?>' \
'https://graph.facebook.com/me/lemberg_dk:read'
I have spent the last 24 hours researching cURL and trying to understand how to convert it to PHP, but I simply just can't grasp it.
Can anybody here help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
执行后,您将在
$response
变量中获得服务器响应。当然,要使其正常工作,您需要加载 cURL 扩展。
Try this:
After execution you will get server response in
$response
variable.Of course to make it to work you will need cURL extension loaded.