Facebook的黑莓SDK [英] Facebook BlackBerry SDK

查看:545
本文介绍了Facebook的黑莓SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

推荐答案

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

Download jar from here and add it to your project http://sourceforge.net/projects/facebook-bb-sdk/

和写code到您的工程画面

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的黑莓SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆