aspose file tools*
The moose likes Android and the fly likes How to Integrate Facebook with Android 4.0 (Ice cream Sand-witch) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to Integrate Facebook with Android 4.0 (Ice cream Sand-witch)" Watch "How to Integrate Facebook with Android 4.0 (Ice cream Sand-witch)" New topic
Author

How to Integrate Facebook with Android 4.0 (Ice cream Sand-witch)

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

i want to build simple and small application of Facebook login and logout , by using android 4 concepts like FacebookActivity class , <LoginButton .. /> etc . this is also in documentation but , the documentation code is not in proper manner . in previous version the login() , logout() , aunthmticate() methods are deprecated so please give me simple language and tutorial of Facebook and android.


With Regards :-
Harmeet Singh
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
I would start here: https://developers.facebook.com/android/


Ping & DNS - my free Android networking tools app
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

thank you for response , but i m not understand (Step 2 : Set Up Authentication Change Triggers) in this example https://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/ why they replace FragmentActivity to FacebookActivity and if we extends the FacebookActivity then how we implement onViewCreate() function , this tutorial is really a confusing.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Here is another way to do it - https://developers.facebook.com/docs/mobile/android/build/

Minimum API requirement - API level 10

I'm not sure I understood your question about OnViewCreate()


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

thank you deepak sir , actual i already done by this example but in this the aunthicate(... , .. ) method is deprecated . so the previous example in documentation is new way , but i cant understand the example properly . if there is any other simple way then ask me ..
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Jimmy kalra wrote:thank you deepak sir , actual i already done by this example but in this the aunthicate(... , .. ) method is deprecated . so the previous example in documentation is new way , but i cant understand the example properly . if there is any other simple way then ask me ..


I dont see anything on that page that says the API methods are deprecated. Am I missing something ?
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

in the new 4.0 android sdk the Facebook class authorised(... , ...) method , login(...) , logout(...) etc methods are deprecated , chek in documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Integrate Facebook with Android 4.0 (Ice cream Sand-witch)