How to “like” and “comment” on facebook through Graph API in iPhone?

雨燕双飞 提交于 2019-12-06 01:25:41

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/4721057/how-to-like-and-comment-on-facebook-through-graph-api-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!