Issues creating login button using Facebook SDK 4.1.2

后端 未结 4 2113
滥情空心
滥情空心 2021-01-24 07:15

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

4条回答
  •  無奈伤痛
    2021-01-24 07:27

    The issue may arise due to non-initialization of FacebookSdk before its usage. Try initializing facebook sdk before :

    1.setContentView(R.layout.activity_main); (In Activity)

    2.View rootView = inflater.inflate(R.layout.facebook_fragment, parentViewGroup, false); (In fragment)

    Hope this helps!

提交回复
热议问题