Facebook REST API 对任何不起作用的帖子点赞/不点赞
我正在为该设备开发 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,使用
DELETE
http 方法调用/postid/likes
连接。Yes, call the
/postid/likes
connection with theDELETE
http method.