New Facebook API 3.0. and ActionBarSherlock compatibility

后端 未结 2 1542
南旧
南旧 2021-02-05 12:00

I\'m reading facebook Android API 3.0 documents, and I do not understand what does session has to do with background activities. In all examples I\'m supposed to extend \"Facebo

2条回答
  •  误落风尘
    2021-02-05 12:40

    You do not need to inherit from anything, if you don't provide an app_id through code, you must specify it in your application metadata (and in your strings.xml). See https://developers.facebook.com/docs/reference/android/3.0/Session#APPLICATION_ID_PROPERTY

    In your AndroidManifest.xml, you need to add:

    
      ... other activity stuff here ...
      
    
    

    And then add app_id as a string in your string.xml.

提交回复
热议问题