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 8347015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:12:53+00:00 2026-06-09T07:12:53+00:00

I have 3 entities: 1.Android Phone 2.Local Server 3.Fb Server I want user to

  • 0

I have 3 entities:

1.Android Phone

2.Local Server

3.Fb Server

I want user to login from his phone on to FB , but once authenticated , I want to be able to pull data into local server from FB(no data on to phone).

What is the best way to do this ?.
Is there a way to do this using oAuth ?

  • 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-09T07:12:57+00:00Added an answer on June 9, 2026 at 7:12 am

    This is certainly no problem. Just implement the server-side authentication flow on your web server. Instead of placing a login button on a website where you redirect the user to the Facebook dialog, you open the browser on the smartphone (or embedd a Webview) with that URI. The redirect_uri then points to your web server callback, where you receive the authorization code. Then you exchange that code for an access token by calling Facebook from your server and you’re done.

    On the phone, point the browser to:

    https://www.facebook.com/dialog/oauth?
        client_id=YOUR_APP_ID
        &redirect_uri=https://YOUR_SERVER/YOUR_CALLBACK
        &scope=COMMA_SEPARATED_LIST_OF_PERMISSION_NAMES
        &state=SOME_ARBITRARY_BUT_UNIQUE_STRING
    

    After handling the callback, issue a request from your server to:

    https://graph.facebook.com/oauth/access_token?
        client_id=YOUR_APP_ID
        &redirect_uri=https://YOUR_SERVER/YOUR_CALLBACK
        &client_secret=YOUR_APP_SECRET
        &code=AUTHORIZATION_CODE_YOU_RECEIVED
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have entities that required versioning support and from time to time, i will
I have 2 entities User and Role Role.hbm.xml : <?xml version=1.0 encoding=utf-8 ?> <hibernate-mapping
I have several entities in datastore, but I don't know if some of their
I have developed a REST based server in java for Android devices and Desktop
I have entities: Tweet and User . Tweet has an author , which is
In hibernate I have entities A and B. There's is a one-to-many from A
I have entities Group and User . the Group entity has Users property which
I have entities which are created from eclipseLink.I am trying to use the same
Lets say I have entities Article, Page and Category. I want entity Article to
I have created the following entities in Android :- Android MyService (apk) MyServiceClient (jar)

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.