Error inflating class com.facebook.widget.LoginButton

前端 未结 14 2648
星月不相逢
星月不相逢 2020-12-15 06:54

I have built a Facebook integration using the steps from the 3.0 documentation. It works fine in when I deploy the app to my phone using Eclispe; however, when I export the

14条回答
  •  清歌不尽
    2020-12-15 07:41

    you have to initialize facebook SDK before setContentView, so add following line right above the setContentView

    FacebookSdk.sdkInitialize(getApplicationContext());
    

提交回复
热议问题