Facebook Sdk Has Not Been Initialized FacebookSdk.sdkInitialize()

前端 未结 8 1344
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 23:55

Hey I know this was asked before, but none of the solutions seem to help. I\'m using first time Facebook SDK in my application.

What I\'ve tried:

I had tried

8条回答
  •  甜味超标
    2020-12-05 00:44

    You have to use FacebookSdk.sdkInitialize(getApplicationContext()); before setContentView(R.layout.activity_main); as documentation states out. In case you need a complete facebook login example, check this one here.

提交回复
热议问题