2012-02-21 124 views
-1

我要實現我的黑莓應用程序的Facebook登錄和分享。你能幫助我如何爲我閱讀自述文件是沒有作用的使用示例代碼。Facebook的黑莓SDK

回答

2

下載JAR從這裏,並在你的項目屏幕添加到您的項目 http://sourceforge.net/projects/facebook-bb-sdk/

,並編寫代碼

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