如何“喜欢”和“注释”在Facebook上通过Graph API在iPhone上? [英] How to "like" and "comment" on facebook through Graph API in iPhone?

查看:120
本文介绍了如何“喜欢”和“注释”在Facebook上通过Graph API在iPhone上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用图形API显示新闻提要。我有关于以下问题的疑问。


  1. 我想为每个新闻Feed帖子提供Like功能。 >


  2. 我想为每个新闻资讯提供评论功能。


有人可以帮助我如何使用iphone中的图形API来解决这个问题。

解决方案

请参考在这里我的回答:如何在Facebook中通过FBconnect或Graph API在iPhone中评论或喜欢照片?



只需发布您的Access令牌到 https://graph.facebook.com/ID_OF_THE_POST/likes 或您的访问令牌和该消息作为的参数https://graph.facebook.com/ID_OF_THE_POST/comments



有关更多信息,请参阅Facebook文档中的发布部分: http://developers.facebook.com/docs/reference/api


I am displaying news feed using graph api. I have queries about below problems.

  1. I would like to give "Like" functionality for each news feed post.

  2. I would like to give "Comment" functionality for each news feed post.

Can someone assist me how to solve this problem using either graph api in iphone.

解决方案

Please refer to my answer here: How to comment or like a photo in facebook through FBconnect or Graph API in iPhone SDK?

Just post your Access Token to https://graph.facebook.com/ID_OF_THE_POST/likes or your Access Token and the Message as a parameter to https://graph.facebook.com/ID_OF_THE_POST/comments.

For more info see the "Publishing" part in the Facebook Documentation: http://developers.facebook.com/docs/reference/api

这篇关于如何“喜欢”和“注释”在Facebook上通过Graph API在iPhone上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆