黑莓的Facebook图形API。 "像"用户的帖子 [英] Blackberry facebook Graph API. "Like" the post of users

查看:128
本文介绍了黑莓的Facebook图形API。 "像"用户的帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发使用Facebook功能的黑莓应用程序。我使用Facebook黑莓的图形API的每一件事情。但我的问题是,我不是能够喜欢或任何信息或照片注释。

I am developing blackberry application that use the Facebook functionality. I do every thing using the Graph API of facebook for blackberry. But my problem is that i m not able to "like" or "comment" on any post or photo.

您可以请注明出处code或帮助例如如何喜欢的用户的帖子。

Can you please give the source code or help example on how to like the post of user.

我阅读后 - Facebook开发但我不是得到它实际上是在说或如何实现这一功能。

I read the "Post - Facebook Developers" but i m not getting what it actually saying or how to achieve this functionality.

任何帮助是AP preciated。

Any help is appreciated.

先谢谢了。

推荐答案

你只需把JAR文件添加到应用程序
接下来只写以下code

you just add that jar file to your application next just write following code

     ApplicationSettings sett=new ApplicationSettings("http://www.facebook.com/connect/login_success.html", "facebooke  id", "secret key", Permissions.ALL_PERMISSIONS);    
     facebook=Facebook.getInstance(sett);
    user = facebook.getCurrentUser();
    String result=user.publishPost(String pMessage, String pLink, String pPictureurl, String pName, String pCaption, String pDescription, String pSource);

如果结果值不为空thaen您的文章全成

if result value not null thaen your post successfull

这篇关于黑莓的Facebook图形API。 "像"用户的帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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