Facebook登录Blackberry 6 [英] Facebook login in Blackberry 6

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

问题描述

我正在黑莓开发应用程序,需要用户通过Facebook登录。
我在Google和每个身体建议使用sourceforge.net提供的sdk,在 https://sourceforge.net/projects/facebook-bb-sdk/ 。我下载了sdk并按照pdf instrunction进行了如下操作。

I am developing an application in blackberry which requires the user's login through facebook. Fot that I search at Google and every body suggesting that use the sdk provide by sourceforge.net at https://sourceforge.net/projects/facebook-bb-sdk/. I downloaded the sdk and follow the pdf instrunction as follow.

1.处理了一个新项目,并创建了一个lib文件夹,并复制了.jar文件
2.添加罐子并通过进入项目的属性选项将其导出到预计。
3.在MyScreen.java中下面我写下如下 PDF 包含在SDK中

1.Created a new project and also created a lib folder and copied the both .jar file 2.Added the jar and exported it to projected by going to property option for the project. 3.Next in MyScreen.java I write down the following as mentioned in PDF included in SDK

public final class MyScreen extends MainScreen
{
public MyScreen()
{        
    // Set the displayed title of the screen       
    setTitle("Facebook Login");
    String NEXT_URL = "http://www.facebook.com/connect/login_success.html";
    String APPLICATION_ID = // removed - application specific and should not be shared
    String APPLICATION_SECRET = // removed - application specific and should not be shared
    String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS;
    ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
    Facebook fb = Facebook.getInstance(as);
}}

之后,我运行该程序并给出以下错误

After that I run the program and gives the following error

我在几个论坛上阅读和网站,很容易将Facebook登录到Blackberry,但是我无法做到这一点。请指出我在哪里丢失。

I read at several forum and sites that it is quite easy to integrate Facebook login in Blackberry but I can not do that.Please suggest where I am missing .

请问!

推荐答案

在browserfield中打开Facebook,当您输入正确的用户名和密码,然后检查浏览器字段内容,并将其区分为失败和成功我的背景,你可以决定用户是否已经输入正确的用户名和密码,如果是,那么你想要的wt。

open the facebook in browserfield.and when you put correct username and password and then check the browser field content and distinguish it for failure and success.and then i background you can decide whether user has put the correct username and password if yes then do wt you want.

这篇关于Facebook登录Blackberry 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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