This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
steps of integrating Facebook in android
I want to integrate Facebook in my application where i want to share a link..can somebody tell me step by step how to integrate Facebook in your application using Facebook SDK...
Thanks in advance..
I recently started an app that has Facebook integration. The link that Rosalie and basicsharp sent you is a step-by-step guide to getting Facebook integrated into your app. It took me a while to understand how the API fits together. The following link explains the Graph API, which is the core API that you will be using: Facebook Graph API
Don't expect to get it right after 5mins, it will take time! Here is an overview of what you need to do to connect your app to facebook.
Get the facebook-android-api via Git(Just download it, it's
extremely simple)
Create an existing project using the facebook api
Add Facebook Api as a reference via project options
Get your app's Hash key via cmd prompt(This is the trickier part,
not going into it because there is an abundance of information
regarding this topic)
Create Facebook app(On Facebook)
Do the code - Facebook developer mobile
And there you have it.
Related
I have started learning FB integration in android tutorials from the facebook developers site. But what I have observed is that the Pick Friends activity in the provided example projects (Sample Projects Scrumptious and HelloFbSample) doesn't work either in the emulator or the smart phone. Is either anybody experiencing the same problem ?
The Graph API v2.0 shows only friends who are also using your app. See Don't get all friends of facebook in my ios app?
Even though The Facebook Platform v2.0 shows only friends who are also using your app, you still may be able to see the entire list of friends provided:
1) You are using older version of facebook sdk, as I am using 3.5, it's working well for me.
2) You must have registered your app in your facebook developer account before April 2014.
This will work only till April 30, 2015. After that the friends who are using the same app only would be visible.
Reference:
https://developers.facebook.com/docs/apps/upgrading
https://developers.facebook.com/docs/apps/changelog
I have found a few workarounds that will show a users friends, however you cannot interact with them. Like inviting them to your app. Facebook has bascically restricted this kind of behavior to games only but if you read my issue request here on HelloJS you will see i have a few solutions that might help. In no means is this for Java (Android) its for web based/cordova mobile apps not native android (java)
https://github.com/MrSwitch/hello.js/issues/57
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.
was just curious as to how I can go about reading Facebook status posts from a particular page through my Android application.
I looked into the Facebook API but that seems to be more related to making Facebook applications, which wasn't my intent.
If anyone can point me in the direction of a guide or link that will explain to me how to do this it will be much appreciated.
Well the whole idea of the Facebook API is so that you can call their functions to give you access to Facebook content. If you want to incorporate them into your Android Application, try using their Android SDK
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.
I'm learning Android and I'm trying to connect to Twitter and upload a photo in Android. How can I do this?
This question gives you a hint on how to use an Intent to start a Twitter application and use it to to post something. In this way the user don't have to give your program the twitter credentials.
If you want to connect to twitter yourself you can use one of the java twitter apis that are out there.
I hope this is a starting point. If you encounter more specific problems come back and we will be glad to answer them.
For a general howto on Android check out the hello world application and all the other tutorials on the android developer pages.