Facebook REST API 对任何不起作用的帖子点赞/不点赞

发布于 2024-10-04 03:27:20 字数 833 浏览 0 评论 0原文

我正在为该设备开发 Facebook 客户端应用程序,并且正在使用 REST API。 直到昨天,“喜欢/不喜欢”功能对所有帖子都运行良好。 今天再次测试,发现不行。 它的投掷 “错误代码”:100, “error_msg”:“无效参数”,

我检查了facebook开发者网站并发现 “我们正在弃用 REST API。如果您正在构建新的 Facebook 应用程序,请使用 Graph API。虽然仍有一些功能我们尚未移植,但 Graph API 是 Facebook 平台移动的中心前进,所有新功能都将在其中找到。”

并尝试模拟它 http://developers.facebook.com/docs/reference/rest/stream.addLike 并发现同样的错误。

我尝试在手机上安装应用程序,发现如果使用 REST API,Like 功能将无法正常工作。 如果 Like/UnLike 功能已被弃用,那么使用 REST API 在这些设备上运行的应用程序又如何呢?

使用图形 API,如何对帖子进行点赞/不点赞,就像在 GRAPh API 中一样,我们得到一个链接 http://www.facebook.com/100001393844687/posts/109566102445124 它必须在我不想使用的 broswer/broswer 类上打开。

请帮助解决这个问题。

I am developing Facebook Client Application for the device and I'am using REST APIs.
Till yesterday, Like/UnLike feature was working well for all posts.
Today i test again, and found its not working.
its throwing
"error_code": 100,
"error_msg": "Invalid parameter",

I checked facebook developers website and found
"We are in the process of deprecating the REST API. If you are building a new Facebook application, please use the Graph API. While there is still functionality that we have not ported over yet, the Graph API is the center of Facebook Platform moving forward and where all new features will be found."

and tried to simulate it on
http://developers.facebook.com/docs/reference/rest/stream.addLike
and found same error.

I tried installed application on phones, and found Like feature was not working if they using REST API.
And if Like/UnLike feature has been deprecated, then what about the applications running on these devices using REST API.

Using graph API, how to do LIKE/UnLike a post, as in GRAPh API, we get a link
http://www.facebook.com/100001393844687/posts/109566102445124
which has to open on broswer/broswer Class which i don't want to use.

Please help in this issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

会傲 2024-10-11 03:27:20

是的,使用 DELETE http 方法调用 /postid/likes 连接。

Yes, call the /postid/likes connection with the DELETE http method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文