如何使用Facebook C#SDK实现类似功能? [英] how do i implement like feature with facebook c# SDK?
问题描述
我将Facebook C#SDK 5.3.2用于桌面应用程序,并使用此SDK创建了桌面应用程序.我现在可以发布消息,但我也喜欢并分享发布的消息.看来我应该获取postid,然后发布带有参数"/me/likes"的消息以及postid.但直到现在我都无法处理.
I am using facebook C# SDK 5.3.2 for desktop application and i created desktop app using this sdk. I can now post messages but i also like and share posted messages. It seems that i should get postid and then post messages with parameter "/me/likes" along with postid. But i couln't manage it till now.
推荐答案
,以使图表喜欢帖子(请参见 https://developers.facebook.com/docs/reference/api/post/),您需要做的就是不带任何参数的HTTP发布到{post ID}/likes
.这假定用户具有publish_stream
权限被接受. :)
for the graph to like a post (see https://developers.facebook.com/docs/reference/api/post/), all you need to do is HTTP post to {post ID}/likes
without any parameters. This assumes the user has publish_stream
permissions accepted. :)
这篇关于如何使用Facebook C#SDK实现类似功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!