0

just found this great library!

make all preparations, all the same as in repo wiki.

here is my code for btn login:

@OnClick(R.id.btn_sort_fb)
    public void onFbClecked(){
        if (!mIsFbSortActive){
            SimpleFacebook fb = SimpleFacebook.getInstance();
            new LoginWithFb(getActivity(), this, fb);
        }
    }

but SimpleFacebook.getInstance();return me null

looks like i am missing something...

will be glad any help!

Community
  • 1
  • 1
Stan Malcolm
  • 2,740
  • 5
  • 32
  • 53

1 Answers1

0

As per the library, there two methods for getting the SimpleFacebook.getInstance(); instance, one is return the SimpleFacebook object and initializes the library where as the other one which is without param is returning just the instance.

Use

SimpleFacebook fb = SimpleFacebook.getInstance(YOUR_ACTIVITY_CONTEXT);

Source: SimpleFacebook

Murtaza Khursheed Hussain
  • 15,176
  • 7
  • 58
  • 83