Facebook的黑莓SDK(Facebook BlackBerry SDK)

384 IT屋

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.

解决方案

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

我要实现我的黑莓应用程序的Facebook登录和分享。你能帮助我如何使用它的样本code,因为我读的README文件是没有作用的。


解决方案

从这里下载JAR并将其添加到您的项目
http://sourceforge.net/projects/facebook-bb-sdk/

和写code到您的工程画面

 的applicationSettings SETT =新的applicationSettings(http://www.facebook.com/connect/login_success.html
        facebooke ID,密钥,Permissions.ALL_PERMISSIONS);Facebook的= Facebook.getInstance(SETT);
用户= facebook.getCurrentUser();字符串结果= user.publishPost(字符串pMessage,字符串砰砰,
        字符串pPictureurl,字符串PNAME,字符串pCaption,字符串pDesc​​ription,
        字符串的PSource);

本文地址:IT屋 » Facebook的黑莓SDK