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

  • Home
  • SEARCH
  • 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 6363575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:03:18+00:00 2026-05-25T00:03:18+00:00

I am having a lot of trouble figuring out how to implement Facebook Oauth

  • 0

I am having a lot of trouble figuring out how to implement Facebook Oauth for mobile web applications. I would like to use the “touch” interface as indicated in the “display” parameter in the following code example on their developer website. Does anyone have experience using this code? I can’t seem to get it working in Javascript. Are there other ways of using getting my users to see the touch enable login interface?

Here is the documentation that I am referring to: http://developers.facebook.com/docs/guides/mobile/

  • 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-05-25T00:03:19+00:00Added an answer on May 25, 2026 at 12:03 am

    Yes, there is a way to enable your mobile browser users to see the touch-enabled login interface. Instead of using the FB SDK, you need need to use the oauth method as described here:

    http://developers.facebook.com/docs/authentication/

    I’m using the ‘Server Side Flow’ to do exactly what you’re trying to do and it seems to work great.

    First you redirect to the FB oauth page, passing your app ID and your landing page as a callback (NOTE: landing_page MUST be formatted as a directory and cannot be a document!). Pass in display=touch and optional app data if you need it using state.

    document.location='http://www.facebook.com/dialog/oauth?client_id=' + appid + 
        '&redirect_uri=http://' + landing_page + '/&display=touch&state=' + 
         optional_app_data;
    

    After the user logs in successfully, your user will be redirected to landing_page with a GET variable of code. You can use this code to get an access_token if you need to query the Open Graph API for user info like this (in PHP):

    $response = file_get_contents("https://graph.facebook.com/oauth/access_token?"
        ."client_id=FACEBOOK_ID."&redirect_uri=http://". landing_page
        ."/oauth/&client_secret=".FB_APPSECRET."&code=$authcode"); 
    
    parse_str($response, $params);
    
    $graph_url = "https://graph.facebook.com/me?access_token=".$params['access_token'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been having a lot of trouble figuring this out. So I'm using inline
It's late, I'm really tired, I'm having a lot of trouble figuring out a
Working with the Facebook php SDK's, I am having a lot of trouble figuring
I'm having a lot of trouble working out how to use mod_rewrite (via htaccess)
I am having trouble figuring out how to use dojo/aspect with widgets. Consider the
I'm sorry, for some reason I'm having a lot of trouble figuring out how
I have been having a lot of trouble figuring out how I can access
I've been having a lot of trouble figuring this out. What I want is
I've having a bit of trouble figuring out how to mass redirect a lot
I'm having trouble figuring out how to set indexers in C# with Moq. The

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.