Facebook Graph API v2.5-无法删除使用链接创建的帖子
我正在使用Facebook Graph API v2.5来发布和删除用户个人资料中的帖子. 我正在使用Postman(Chrome扩展程序)来测试我的REST调用.
I'm using Facebook Graph API v2.5 to publish and delete posts from user's profiles. I'm using Postman (Chrome extension) to test my REST calls.
情况1)当所有方法都有效时: -我向" https://graph.facebook.com/v2.5发送请求/MY_USER_ID/feed ",以及参数"access_token"和"message" -API向我返回了创建的帖子ID,例如"108373569531356_138530589848987" -然后,我对" https://graph.facebook.com/v2.5/108373569531356_138530589848987 ",参数为"access_token". -我已成功从用户个人资料中删除我的消息
Case 1) When all actually works: - I do a POST request to "https://graph.facebook.com/v2.5/MY_USER_ID/feed", with params "access_token" and "message" - The API returns me the created post ID, let's say "108373569531356_138530589848987" - Then I do a DELETE request to "https://graph.facebook.com/v2.5/108373569531356_138530589848987", with params "access_token". - My message I successfully removed from user's profile
情况2)我的问题,它无法按预期工作 -我执行与上一个相同的POST请求,但是我添加了一个额外的链接"参数. -API向我返回创建的帖子ID. -然后,当我尝试使用DELETE请求删除此帖子时,Facebook API向我抛出错误:"message":(#100)无法加载此帖子"
Case 2) My issue, it does not work as expected - I do the same POST request as previous, but I add an extra "link" parameter. - The API returns me the created post ID. - Then when I try to delete this post using DELETE request, the Facebook API throws me an error: "message": "(#100) This post could not be loaded"
我注意到的一件事是,第一个请求似乎创建了一个Facebook帖子",但是第二个请求似乎创建了一个链接". 我使用v2.3 API get/post_id来比较两个帖子,它们有很大的不同.
One thing I noticed, is that first request seems to create me a Facebook "post", but the second one seems to create a "link". I used the v2.3 API get/post_id to compare both posts, they are pretty much different.
所以,为什么我不能删除链接"元素,Facebook文档却什么也没说.
So, why can't I delete a "link" element, the Facebook documentation does not tell anything about it.
非常感谢!
也许您遇到了错误( https://developers.facebook.com/bugs/1671530079772375/),现已修复.
Maybe you were suffering a bug (https://developers.facebook.com/bugs/1671530079772375/) which is fixed now.
如果您发布的帖子中包含通过处于开发模式的应用程序的链接,则该帖子不会记入您的应用程序[错误],因此,如果您尝试删除它,则不会,因为Facebook仅允许删除您的应用发布的帖子.
If you published a post with a link through an app being in development mode, this post wasn't credited to your app [bug] so, if you tried to delete it, you couldn't because Facebook only allows to delete posts published by your app.