I want to implement facebook login and sharing in my blackberry app. Can you help me with a sample code of how to use it as I read the readme file it wasn't useful at all.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
A quick google with your title would have got you this:
http://sourceforge.net/projects/facebook-bb-sdk/
回答2:
Download jar from here and add it to your project http://sourceforge.net/projects/facebook-bb-sdk/
and write this code in to your project screen
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);