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条)

报告相同问题?