Facebook FriendPicker not showing (Facebook Android SDK Tutorial “Show Friends” not updating?)

I recently downloaded facebook-android-sdk-3.8.0 and started developing an example application with Facebook integration.

I follow these tutorials on the Facebook developers page: https://developers.facebook.com/docs/android/scrumptious

I successfully implemented the first two parts, that is, "Authentication" and "Personalization". But now I'm completely stuck in the “Show Friends” tutorial ( https://developers.facebook.com/docs/android/scrumptious/show-friends ).

Step 2e works well, but from this to step 3c it doesn’t.

The problem is that the friends picker doesn't display at all . When I touch the "With whom? Choose friends" button, the activity opens, and I see a blue bar at the top with the words "Choose friends" and the "Finish" button on the right. But otherwise the activity will be white, i.e. No friends list.

Studying LogCat, I cannot recognize any meaningful error messages or messages.

I read the tutorial on proposal suggestions at least four times and compared to my implementation, and I just can't find the reason why the friend picker is not showing. We also tried Google for a reason and a solution, but no luck.

I would really appreciate if you can identify the problem and help me solve this problem, so I can continue training :)

+4
1

LoginButton . LoginButton SplashFragment setReadPermission(); :

private void showFragment(int fragmentIndex, boolean addToBackStack) {
        FragmentTransaction transaction = fm.beginTransaction();
        for (int i = 0; i < fragments.length; i++) {
            if (i == fragmentIndex) {
                transaction.show(fragments[i]);
                if(i==SPLASH){
                    SplashFragment sf=(SplashFragment)fragments[i];      sf.login.setReadPermissions(Arrays.asList("public_profile","user_friends"));
                    //Log.d("TEST","Permission Set");
                }
            } else {
                transaction.hide(fragments[i]);
            }
        }
        if (addToBackStack) {
            transaction.addToBackStack(null);
        }
        transaction.commit();
    }
0

Source: https://habr.com/ru/post/1539823/


All Articles