dopgl80062 2015-09-30 11:10
浏览 66
已采纳

Facebook粉丝页面API:如何使用Facebook图形和PHP API调用此API调用

I have tried a lot but no luck. I want to call following API call using graph API like https://graph.facebook.com/page_id/settings?option={options}&access_token={page token} and Facebook PHP API.

curl -F 'method=post'
     -F 'option={"COUNTRY_RESTRICTIONS" : {"restriction_type":"blacklist", "countries":["PL", "FR"]}}'
     -F 'access_token={page_access_token}'
      https://graph.facebook.com/546349135390552/settings

You can find above API call here Facebook Fan Page API Documentation

Thank in advance

  • 写回答

2条回答 默认 最新

  • douci1541 2015-09-30 11:28
    关注

    You forgot the Page ID in the API call:

    https://graph.facebook.com/page-id/settings...
    

    Anyway, since you edited the question and that´s not the problem, here´s a tutorial about using PHP curl with POST: http://davidwalsh.name/curl-post

    Another example from Stackoverflow: PHP + curl, HTTP POST sample code?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记