How to integrate the Facebook API into an Android app?

I am developing a mobile social television application on Android. I want to integrate Facebook with my application so that I can:

  • Share on Facebook
  • Send a request to your friends on Facebook to join the application
+6
source share
2 answers

You can use this.

Facebook Android SDK

But be careful about the results of processing activity. If you test integration in the simulator, you have not installed the facebook application. and sdk will show you a dialog with webview. But on a real phone, if the application is facebook., Authorization will go through the application.

+5
source

you need to install an extension similar to the base Android SDK, but no, here is what you need to do:

1.) go to https://github.com/facebook/facebook-android-sdk

2.) ONLY upload your facebook directory! Other catalogs are examples only.

3.) Put the files from src (you can also copy the drawings if you want) to the package, you are currently working with

4.) You will go well, you can use facebook "SDK"

see also these examples https://github.com/facebook/facebook-android-sdk/tree/master/samples , this is a working example provided by facebook

+4
source

Source: https://habr.com/ru/post/911932/


All Articles