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!
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