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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:36:11+00:00 2026-06-07T05:36:11+00:00

I was trying to implement Facebook login in windows 8 application . I am

  • 0

I was trying to implement Facebook login in windows 8 application . I am using following url to request Facebook login

https://www.facebook.com/dialog/oauth?client_id=APP_ID&response_type=token&scope=email%2coffline_access%2cpublish_stream&redirect_uri=http%3a%2f%2fwww.facebook.com%2fconnect%2flogin_success.html&display=touch

I am using webview to request this url .I am getting the login page correctly shown below.
enter image description here

After user enter login credential it is getting redirecting to another page and getting stuck there.I guess that page is supposed to be given permissions.I am attaching a screen shown below

enter image description here

Nothing will happen if i click on cancel or install ..

if i am removing display=touch from the request everything will works fine.But the login poge and permissions page are displayed like in web browser.That is not optimized for touch ..

I have tested the same with webbrowser control in wpf..But the problem is still exisiting there. Any ideas?

  • 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-07T05:36:13+00:00Added an answer on June 7, 2026 at 5:36 am

    On Windows 8 You should be using WebAuthenticationBroker.

    Here is code example:

    private async void Authenticate()
        {
            //Facebook Authentication Uri
            var facebookUri = "https://www.facebook.com/dialog/oauth";
            //Standard redirect uri for desktop/non-web based apps
            var redirectUri = "https://www.facebook.com/connect/login_success.html";
            //Place your appa client id here
            var clientId = "";
            //The type of token that can be requested
            var responseType = "token";
            //Response pattern
            var pattern = string.Format("{0}#access_token={1}&expires_in={2}", redirectUri, "(?.+)", "(?.+)");
    
            try
            {
                String FacebookURL = "https://www.facebook.com/dialog/oauth?client_id=" +
                    clientId + "&redirect_uri=" + Uri.EscapeUriString(redirectUri) + "&scope=read_stream&display=touch&response_type=token";
    
                System.Uri StartUri = new Uri(FacebookURL);
                System.Uri EndUri = new Uri(redirectUri);
    
    
                WebAuthenticationResult WebAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync(
                                                        WebAuthenticationOptions.None,
                                                        StartUri,
                                                        EndUri);
                if (WebAuthenticationResult.ResponseStatus == WebAuthenticationStatus.Success)
                {
                    var response = WebAuthenticationResult.ResponseData.ToString();
                }
                else if (WebAuthenticationResult.ResponseStatus == WebAuthenticationStatus.ErrorHttp)
                {
                    //Handle HTTP error
                }
                else
                {
                    //Handle error
                }
            }
            catch (Exception ex)
            {
                //Handle error
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement facebook Oauth dialog(direct url approach) http://developers.facebook.com/docs/reference/dialogs/oauth/ It works fine
I have been trying to implement the Facebook Feed Dialog as follows <a href=http://www.facebook.com/dialog/feed?app_id=12345678&redirect_uri=http://example.com&link=http://example.com&message=Hi+wassup!>
I'm trying to implement a Login with Facebook using the Open Graph API. So
I'm trying to implement the registration plugin on my application as documented here: http://developers.facebook.com/docs/plugins/registration/advanced/
Hi i was trying to implement facebook login for my django app using django-facebook
I am trying to implement facebook Connect to my cakephp Application. i am using
Trying to implement Ryan's JS implementation of the facebook login, via his Railscast: http://railscasts.com/episodes/360-facebook-authentication
im trying to implement a login with facebook/twitter functionality in my app, i read
I've been trying to implement the Facebook SDK into my application in order to
I'm trying to implement single sign-on using facebook in my ruby sinatra app. So

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.