English 中文(简体)
通过图形 API 卸载 Facebook 应用程序
原标题:Uninstall Facebook app through Graph API

我为客户设计了一个工具, 他可以在其中自定义自己的Facebook标签。 安装按钮效果很好, 并且标签被添加到Facebook页面中。 但我也计划加入一个方法,从我正在工作的工具中的页面中删除标签。

文件提到通过APIhttps://developers.facebook.com/docs/reference/api/page/#tabs

I tried that, but I only get a "Uncaught OAuthException: (#210) Subject must be a page" error. This is the code I used for that.

$facebook- & gt; api (/ $ page_ id. /tabs/ app_. $app_ id., DELETE, 数组( 访问_ ken, $ page_ ken) );

我一直在寻找另一种删除它的方法, 并且也找到了这个选项, 但这也返回了一个错误 。

https://graph.facebook.com/pageid/tabs/tabbs/tabid?method=delete&access_token=token" relationl="nofollow" >https://graph.facebook.com/pageid/tabs/tabid?method=delete&access_token=token recent; (#100) Tab没有安装,或者不能重新移动: 它肯定已经安装了!

您是否甚至应该通过 API 删除已安装的应用程序, 或者在文档中写一些不起作用的东西吗?

问题回答

我刚刚用我的页面测试了它,格式为 /PAGE_ID/tabs/ap_APPID ,使用的方法为 DELETE 和Pages s access_token ,效果良好,它恢复为真实,标签被删除 - 注意我第一次尝试时也得到了210个错误,因为我无意使用用户访问权限来代替页面访问符号,所以可能重复检查





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签