问题
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