您好,这是我第一次将facebook集成到我的任何Android应用程序中我需要实现功能,如fp页面/帖子和评论fb页面/帖子,,, !! 我已经下载了用于Android的fb sdk并玩弄它如何我仍然不清楚我需要做什么以及如何处理要求我需要的是当用户点击我的应用程序中的按钮它自动喜欢一个fb的帖子,它将编辑文本中的文本作为评论提交为fb post ,, !! 有人可以告诉你如何解决这个问题
Hello this is the first time I am integrating facebook in any of my android applications I need to implement functionality to like a fp page/post and comment on fb page/post ,,,!! i have downloaded the fb sdk for android and played around with it how ever i am still not clear as to what to i need to do and how to approach the requirement What i need is when the user clicks a button in my app it automatically likes a fb post and it submits text from edit text as a comment to as fb post ,,!! Can some one tell how to go about this
最满意答案
要“喜欢”一篇文章:
就像是:
Facebook mFacebook = new Facebook(); mFacebook.request(THE_POST_ID + "/likes", parameters, "POST");要对帖子“发表评论” :
Bundle parameters = new Bundle(); parameters.putString("message", edtComment.getText().toString()); mFacebook.request(THE_POST_ID + "/comments", parameters, "POST");To "like" a post:
Something like:
Facebook mFacebook = new Facebook(); mFacebook.request(THE_POST_ID + "/likes", parameters, "POST");To "comment" on a post:
Bundle parameters = new Bundle(); parameters.putString("message", edtComment.getText().toString()); mFacebook.request(THE_POST_ID + "/comments", parameters, "POST");更多推荐
发布评论