Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android facebook integration

I am developing an android application where I want to integrate facebook like. I was going through the link http://developers.facebook.com/docs/guides/mobile/#android

I have few doubts:

  1. I generated the key using keytool but could not understand how to register it in Mobile and Devices Section. Where is this Mobile and Devices section?

  2. How do I implement the facebook like button functionality in my application? Any sample code will be really helpful.

Rgds, Sapan

www.darooadda.com

like image 402
Sapan Avatar asked Apr 23 '11 17:04

Sapan


People also ask

How did you integrate the Facebook SDK in Android app?

To use the Facebook SDK in an Android Studio project, add the SDK as a build dependency and import the SDK. Go to Android Studio | New Project | Minimum SDK. Select API 15: Android 4.0. 3 (IceCreamSandwich) or higher and create your new project.


1 Answers

1) Follow this path:

  • Go to http://www.facebook.com/developers/
  • click on the app link to the right
  • click edit settings (on the menu on the right)
  • click Mobile and devices on the menu on the left.

2) Do you want to make a native app or access it through a webview? If it's a webview, then create the web page as in any other html code. To get started with a native app, did you look at the example at: https://github.com/facebook/facebook-android-sdk/tree/master/examples/simple?

like image 178
Aleadam Avatar answered Oct 08 '22 00:10

Aleadam