Facebook Fan Page API: How to call this API call using Facebook graph and PHP API -


i have tried lot no luck. want call following api call using graph api https://graph.facebook.com/page_id/settings?option={options}&access_token={page token} , 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

you forgot page id in api call:

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

anyway, since edited question , that´s not problem, here´s tutorial using php curl post: http://davidwalsh.name/curl-post

another example stackoverflow: php + curl, http post sample code?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -