Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:22:48+00:00 2026-06-14T05:22:48+00:00

I use facebook-android-sdk-3.0.1.b to integrate my Android app with Facebook. After user has logged

  • 0

I use facebook-android-sdk-3.0.1.b to integrate my Android app with Facebook.
After user has logged in (explicitly or implicitly – does not matter), the callback is called:

@Override
protected void onSessionStateChange(SessionState state, Exception exception) {
    if (state.isOpened()) {         
        final String urlString = "http://www.facebook.com/22332332322";
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(urlString)));
    }
}

As you can see, I launch a broswer passing it some facebook page. My goal is to allow user to “like” this page. However, as user presses “like” button on this page, he is asked to authorize. That’s not good because he has already authorized.

I am interested is it possible to extract authorization information (access token or whatever) from facebook-android-sdk and pass this information to the browser?

Update

I have found that it is possible to obtain access token for a session:

final String accessToken = getAccessToken();

But how can I pass it to the browser to make the user logged in?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:22:49+00:00Added an answer on June 14, 2026 at 5:22 am

    We had this problem also. In our case we assume that if the user has a Facebook account he also have the Facebook app on his device. So, in that case when the user push the “Follow Us” button we just open the Facebook app with our page, the user only needs to press the “Like” button and that’s it.

    In case the user don’t have the application on his device, we open a browser with our Facebook page.

    You can do it like this:

    try{
    
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/22332332322)); 
    startActivity(intent);
    
    }catch(Exception e){
    
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/22332332322")));
    }
    

    Another possibility is to use Single Sign On from the Facebook API, this is more user friendly method. The user can see what exactly you want and can authorized or not.

    As you said, you can get the access token, but I don’t think you can pass it to the browser. I tried it half a year ago and didn’t find any answer to that.

    You can check my questions, It might help you:

    link1

    link2

    link3

    link4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After login Facebook in my own Android App(use Facebook SDK), already the obtained access
I need to integrate my android app with facebook. I would like to use
I have accomplished developing an android app that uses the facebook sdk to integrate
I'm trying to use Facebook SDK in my Android app. Here's the snippet: Facebook
I'm trying to use the Facebook SDK for Android mobile applications. I've in this
I have to develop web2py app and have to use Facebook sdk in that.
After finally getting the Android Facebook SDK to properly import thanks to this ,
I'm making an Android app with the Facebook SDK. I have the following questions
I'm completely flabbergasted by the Facebook SDK for Android--it's quite challenging to use effectively.
I am trying to use the facebook sdk for android, available here . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.