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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:35:20+00:00 2026-06-17T01:35:20+00:00

I have created an application using c# SDK. The canvas page http://mywebsite/ is working

  • 0

I have created an application using c# SDK.

The canvas page http://mywebsite/ is working fine and I made to accomplish what the client wants, but when i try to access the application via https://apps.facebook.com/ApplicationName which creates an iframe to http://mywebsite/, the login gets stuck.

This is what appears when I hit connect:
enter image description here

That is the permissions window, the permissions appear, I hit ok, and nothing happens.

Code:

<div id="fb-root"></div>
<script type="text/javascript">
    window.fbAsyncInit = function () {
       // alert("aqui estoy");
        FB.init({
            appId: '397613493644598', // App ID
            status: true, // check login status
            cookie: true, // enable cookies to allow the server to access the session
            xfbml: true  // parse XFBML
        });

        FB.Event.subscribe('auth.authResponseChange', function (response) {
            if (response.status === 'connected') {
                // the user is logged in and has authenticated your
                // app, and response.authResponse supplies
                // the user's ID, a valid access token, a signed
                // request, and the time the access token 
                // and signed request each expire
                var uid = response.authResponse.userID;
                var accessToken = response.authResponse.accessToken;
                //alert("conectado");

                // Do a post to the server to finish the logon
                // This is a form post since we don't want to use AJAX
                var form = document.createElement("form");
                form.setAttribute("method", 'post');
                form.setAttribute("action", '/Home/Login');

                var field = document.createElement("input");
                field.setAttribute("type", "hidden");
                field.setAttribute("name", 'accessToken');
                field.setAttribute("value", accessToken);
                form.appendChild(field);

                document.body.appendChild(form);
                form.submit();

            } else if (response.status === 'not_authorized') {
                  alert("Not Authorized");
                // the user is logged in to Facebook, 
                // but has not authenticated your app
              } else {
                  alert("Not logged In");
                // the user isn't logged in to Facebook.
            }
        });
    };

    // Load the SDK Asynchronously
    (function (d) {
        var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
        if (d.getElementById(id)) { return; }
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        ref.parentNode.insertBefore(js, ref);
    } (document));
</script>
<fb:login-button perms="user_birthday,email"> Connect</fb:login-button> 

I may know what the problem is, but I need confirmation.

Does the problem is that facebook apps address is https and my app canva url is http?,

  • 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-17T01:35:21+00:00Added an answer on June 17, 2026 at 1:35 am

    Found the answer, if you are testing stage, and this happens to you, you can do the following action.

    Go to this link https://www.facebook.com/settings?tab=security

    And disable secure browsing (this is just while you publish your app). Then your app should work fine.

    Once you are ready to buy a certificate, and publish your application, Enable again this feature.

    So the answer to my question:
    Does the problem is that facebook apps address is https and my app canva url is http?,

    is YES

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

Sidebar

Related Questions

I have downloaded php-sdk for using facebook in php. I also created facebook application
I have created a simple Hello World Application using Flash Builder Burrito SDK. I
I have created application in Facebook. By using Facebook Javascript SDk, I posted message
I have created Map application for iPhone using xcode 3.2 and sdk 4.3.2. I
I have created an augmented reality application using Monodroid and it works fine on
I have made my application using android SDK 2.2 version and now when I
I have created an application using Adobe Flex. I took all the files from
I have created a chat application using the Jabber Smack API. I'm successfully receiving
I have created a mobile application using kendo Mobile UI's trial version in asp.net
I have created a web application using Visualstudio 2008 using C# on my computer.

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.