Php 取消Facebook应用程序限制

Php 取消Facebook应用程序限制,php,facebook,facebook-graph-api,Php,Facebook,Facebook Graph Api,我正在使用第页提到的和第页演示的“限制”属性按位置锁定我的facebook应用程序 我可以通过以下方式设置限制: https://graph.facebook.com/<APP_ID>?restrictions={"location":"US"}&method=post&access_token=<APP_ACCESS_TOKEN> https://graph.facebook.com/?restrictions={“location”:“US”}&me

我正在使用第页提到的和第页演示的“限制”属性按位置锁定我的facebook应用程序

我可以通过以下方式设置限制:

https://graph.facebook.com/<APP_ID>?restrictions={"location":"US"}&method=post&access_token=<APP_ACCESS_TOKEN>
https://graph.facebook.com/?restrictions={“location”:“US”}&method=post&access\u令牌=
我无法找到一种方法来取消限制,但是,称此为无效:

https://graph.facebook.com/<APP_ID>?restrictions={"location":"US"}&method=delete&access_token=<APP_ACCESS_TOKEN>
https://graph.facebook.com/?restrictions={“location”:“US”}&method=delete&access\u令牌=

解决了这个问题,比我想象的要简单。您只需将位置设置为空字符串:

https://graph.facebook.com/<APP_ID>?restrictions={"location":""}&method=post&access_token=<APP_ACCESS_TOKEN>
https://graph.facebook.com/?restrictions={“location”:“}&method=post&access\u令牌=