Blackberry facebook Graph API. “Like” the post of users

可紊 提交于 2019-12-24 02:09:47

问题


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.

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

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

Any help is appreciated.

Thanks in advance.


回答1:


i dont know about graph api.but if it possible download this api http://sourceforge.net/projects/facebook-bb-sdk/ and you can do everything here easily.if you need any help ask me




回答2:


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);

if result value not null thaen your post successfull



来源:https://stackoverflow.com/questions/7284182/blackberry-facebook-graph-api-like-the-post-of-users

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