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 plea开发者_如何转开发se 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.
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
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
精彩评论