I am trying to create an application, which will allow users to sign in via their Facebook accounts. I wanted to use the new Facebook SDK 4.1.2 via eclipse. To use the new SDK i
You initialized facebook sdk in both MainActivity and FacebookFragment, that is not needed, only once is enough and you better initialize it in the superclass, here probably in your MainActivity.
Remove this line FacebookSdk.sdkInitialize(getActivity()); from FacebookFragemet,
and swap lines as follows in MainActivity
FacebookSdk.sdkInitialize(getApplicationContext());
setContentView(R.layout.activity_main);