English 中文(简体)
我们怎样才能在甲状?和甲状?应用的面纱上签字?
原标题:How we can single time sign in on facebook in android application?

在我的和海底装置中,有四种应用,即Facebook AP,现在将一种应用“Facebook”加以记录,并尽可能减少这一应用,并利用Facebook API的其他应用,现在人们希望这一应用中有直接的标识,即使用以前的版本,不需要再作标识。

没有人比我有想法。

成就

问题回答

<><>UPDATE:

由于甲状腺环境的每 app都有自己的沙箱,因此绝对不能在Facebook上签字,从一个 app到另一个.,而且必须在每一个 app子上签字。

“Facebook SSO”建在SDK。 实现该目标的法律如下:

    Facebook facebook = new Facebook(APPID);

facebook.authorize(SinglePost.this, {PERMISSIONS},
                new DialogListener() {

                    @Override
                    public void onComplete(Bundle values) {
                        // control comes here if the login was successful
                        // Facebook.TOKEN is the key by which the value of
                        // access token is stored in the Bundle called
                        //  values 
                        Log.d("COMPLETE", "AUTH COMPLETE. VALUES: "
                                + values.size());
                        Log.d("AUTH TOKEN",
                                "== " + values.getString(Facebook.TOKEN));
                        updateStatus(values.getString(Facebook.TOKEN));
                    }

                    @Override
                    public void onFacebookError(FacebookError e) {
                        Log.d("FACEBOOK ERROR",
                                "FB ERROR. MSG: " + e.getMessage()
                                        + ", CAUSE: " + e.getCause());
                    }

                    @Override
                    public void onError(DialogError e) {
                        Log.e("ERROR", "AUTH ERROR. MSG: " + e.getMessage()
                                + ", CAUSE: " + e.getCause());
                    }

                    @Override
                    public void onCancel() {
                        Log.d("CANCELLED", "AUTH CANCELLED");
                    }
                });

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Log.d("onActivityResult", "onActivityResult");
    facebook.authorizeCallback(requestCode, resultCode, data);
}




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签