how to integrate Facebook API in Android Application? - android

I am developing a mobile social TV application on Android.I want to integrate Facebook with my application so that I can:
Share things on Facebook
Send request to friends on Facebook to join the application

You may use this.
Facebook Android SDK
But carefull about handling activity result. If you test integration in simulator you haven't installed facebook app. and sdk will show you a dialog with webview. But on a real phone if facebook app. is installed, authorization will go via app.

you need to install an extension, similar to the core Android SDK, but no, here is what you need to do:
1.) go to https://github.com/facebook/facebook-android-sdk
2.) download the facebook directory ONLY! The other directories are only examples.
3.) Put the files from the src (you can copy the drawables too, if you want to) in the package, you are currently working with
4.) You are good to go, you can use the facebook "SDK"
see also these examples https://github.com/facebook/facebook-android-sdk/tree/master/samples , it is working example provided by facebook

Related

Adobe Air Application - open facebook app to login

I want my adobe air app to open my user's Facebook app installed on their own device and return to my adobe air app and finish the login process.
I don't want to open Facebook with stagewebview(because the user has to login once more). i want to make it done as other native apps do their Facebook logins.
if this is possible, i want to know how
You can use FreshPlanet Facebook ANE from here https://github.com/freshplanet/ANE-Facebook
If users have Facebook app then works exactly you want it. Also supported SSO login.
You'll need a native extension to achieve this, there are many out there, but just going to point you in the direction of the one we've developed and use in our applications:
http://airnativeextensions.com/extension/com.distriqt.FacebookAPI
The facebook utils extension has been discontinued so the following is no longer applicable, please look into the FacebookAPI ANE above
Or there's the simpler one that just does single sign on if you don't need access to all the API (i.e. if you're going to use the AS3 facebook lib):
http://distriqt.com/product/air-native-extensions/facebook-utils
Cheers

how to add my android app in facebook

I want to add my app to facebook. In facebook If I search any app or game like(Candy Crush) its open. I have created one android app and published it to play store. Now I want on facebook like I search any other app. I am able to search my app. How to add my app to facebook?
Edit-
I am little confused with few answers first thing I have already created app. Now I don't know what to do with android SDK and what's the need of it. Second thing I want to integrate my app to Facebook app center. Don't want to integrate Facebook to my app.
Edit:
An extensive guide to create webapp like candycrush within the core facebook experience.
You can create a web app and then register it with facebook. This way, your app will be visible in the app center, but when the user clicks . it will take the user to your webpage.
Here is an extensive guide to link your webapp on the facebook app center.
Facebook has huge amounts of user information. Facebook lets any app developer access a user's info if they have the user's consent. If you need to leverage the userInfo with facebook, you need to follow these procedure:
Register as a developer with facebook.
Once you are signed in as developer, you will find options to create application.
Assuming that you created your first facebook app with the name and namespace. This app is like a passport for accessing all the facebook data.
Facebook provides sdk(software development kits) to make interactions between the facebook server easier.
Facebook SDK for iOS.
Facebook SDK for Android.
Facebook SDK for Web.
Facebook SDK for Game Development.
Developers of CandyCrush use *Facebook SDK for Game Development.*Since you are going to develop app for Android, you need to integrate facebook android SDK. The following steps:
Download the Android SDK.
Add your android app details(These details should be exactly same) in the facebook Dashboard.
You can run all the facebook sample apps that come with the sdk to know how you can access the facebook details in your app.
To make your app listed in Facebook App center.
Previous Answer:
- Create an app in facebook server.
- Integrate facebook sdk in your android app.
A detailed info regarding this is found here.
This is a more simple tutorial, with step by step instruction.
This a complete tutorial from Facebook to link your app to facebook
Have you made you app public for Facebook? See this.
Hi here you can check facebook application step by step guide..
http://www.wikihow.com/Create-a-Facebook-Application
You say you have an Android APK, and I have to assume you want to have your app playable on the web browser. You can't play an Android game on the Facebook website. I assume you will need to entirely recode the game for Adobe Flash then submit it to Facebook.

Facebook sdk for android. How to get signed_request?

Is there any way to get signed_request with Facebook sdk for Android. Or the only way is to build it manually?
The signed_request field is POSTed to your server when a user loads your Canvas and Page Tab App on Facebook.com, it's not relevant to native mobile apps

Integrating Facebook into an Android app for advertising via Facebook

I have an existing Android app which I am trying to advertise via Facebook ads. Facebook said I must integrate their library into my app, starting with downloading their SDK.
When I downloaded their SDK from here: http://developers.facebook.com/android/ there was no .jar files in it but examples of apps using their classes.
I think for my purposes I just need to make a call to Facebook when my app starts up, right? Because I don't want any Facebook functionality. I just want to be able to intgrate enough to b able to advertise in their system.
Could anyone please help me understand what I need to do?
Should I just copy all the classes in their Facebook/com/src folder into my own project? And if so, where do I add the access key and secret key for my Facebook app into my Android app?
Thanks!
- Alex
The Facebook SDK is not a simple jar file, but is instead an Android Library. If you're using eclipse, you need to import the SDK into your workspace, and add it as a library to your project.
See the google docs on how to add a library http://developer.android.com/tools/projects/projects-eclipse.html
And also the Facebook SDK Getting Started guide https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

Facebook and twitter integration with my android application

I saw some topics here regarding facebook and twitter integration with Android Application.
I need help regarding, is twitter integration with Android App possible in real??
[I need to tweet on user's wall and all]
If i wanted to integrate Facebook with my App then whether i go as per explained in following link(and if this is the recommended way then how to implement this SDK):
http://forum.developers.facebook.net/viewtopic.php?pid=146956
or
else i use Android facebook SDK available here on code.google.com
The official facebook SDK for android is here:
http://github.com/facebook/facebook-android-sdk/
It includes complete examples of use.
I need help regarding, is twitter integration with Android App possible in real?? [I need to tweet on user's wall and all]
In real? Of course! You could be able to tweet on the user's timeline. In this case, use the appropiate authentication methods. There are many ways to do so, this is one of them:
http://www.androidsnippets.org/snippets/24/index.html
You can also use specialized third-party libraries (like twitter4j) to use Twitter from your Android app.

Categories

Resources