adamsh25 / TryFacebookAPI

0 stars 0 forks source link

Pull and embed live videos from facebook API #2

Open adamsh25 opened 8 years ago

adamsh25 commented 8 years ago
adamsh25 commented 8 years ago
    // Add code to print out the key hash
    try {
        PackageInfo info = getPackageManager().getPackageInfo(
                "com.dev.adam.appyandroidapp",
                PackageManager.GET_SIGNATURES);
        for (Signature signature : info.signatures) {
            MessageDigest md = MessageDigest.getInstance("SHA");
            md.update(signature.toByteArray());
            Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
        }
    } catch (PackageManager.NameNotFoundException e) {

    } catch (NoSuchAlgorithmException e) {

    }