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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:28:52+00:00 2026-05-24T07:28:52+00:00

I creating a fb app. I use FB.ui method apprequests to select friends to

  • 0

I creating a fb app. I use FB.ui method apprequests to select friends to whom I send also want to post to wall. This looks like this.

<div id="fb-root"></div>
<script src="http://connect.facebook.net/pl_PL/all.js" type="text/javascript"></script>
<script type="text/javascript" >
FB.init({
    appId: myappID,
    status: true, // check login status
    cookie: true, // enable cookies to allow the server to access the session
    xfbml: true,  // parse XFBML
    channelUrl  : 'http://localhost:3435/Content/channel.html'
});

function invite(){  
FB.ui({ method: 'apprequests',
        message: 'You should learn more about this awesome game.',
        data: 'tracking information for the user'
      },
function (response) {

      if (response && response.request_ids) {
          len = response.request_ids.length; //# of reqs
          var i = 0;

          for (i = 0; i < len; i++) {
            user_req_id = response.request_ids[i];
            FB.api('/me/apprequests/?request_ids=' + toString(user_req_id),
                   function (response) {
                     $.post("http://localhost:3435/Home/PostToWall", 
                            { request_ids: response['data'][0]['from']['id'] },
                            function (data) { alert("Data Loaded: " + data); }
                           );
                    });
      }
    } else {
      //  alert('Post was not published.');
    }
  })
    };
</script> 

As you can see I’m want to do a post request to a

[HttpPost, CanvasAuthorize(Permissions = "user_about_me,publish_stream,email")]
public ActionResult PostToWall(string request_ids)
{
   /* Post to Wall Logic */
   return View();   
}

This works fine with Chrome and Firefox, but in IE the Action isn’t fired up.

I prepared a small sample javascript, which you can test. This is where the problem seems to be.

<script type="text/javascript" >
  function CallPostToWall() {
    $.post("http://localhost:3435/Home/PostToWall", 
           { request_ids: 100001968250722 }, 
           function (data) { alert("Data Loaded: " + data);}
          );
  };
</script>
<a href='#' onclick='CallPostToWall()'>Test Posting</a>

When this is tested in FF and Chrome, the alert return the actions expected html as if http://localhost:3435/Home/PostToWall?request_ids=100001968250722 was requested.

In IE on the other hand. I get somethin like:

<html><head><script type="text/javascript">
top.location = "http://www.facebook.com/dialog/oauth/?scope=user_about_me,publish_stream,email&state=eyJyIjoiaHR0cDovL2FwcHMuZmFjZWJvb2suY29tL2NoaW5jenlrd3Nvc2llL0hvbWUvUG9zdFRvV2FsbCJ9&client_id=248066421875572&redirect_uri=http://localhost:3435/facebookredirect.axd";
</script></head><body></body></html>

I pretty lost with this.

Any thoughts?

Regards,
Simon

  • 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-24T07:28:52+00:00Added an answer on May 24, 2026 at 7:28 am

    Perhaps this is just a workaround. I’ve managed to get the $.post() running/returning the correct view by removing the CanvasAuthorize(…) attrinbute from the PostToWall definition

    [HttpPost]
    public ActionResult PostToWall(string request_ids)
    {
       /* Post to Wall Logic */
       return View();   
    }
    

    As I understood, after reading a couple of posts on the web, this might be caused by IE preventing “cross-site-scripting”-like actions.

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

Sidebar

Related Questions

I am creating an app where i use a WebView this is how the
I am creating a simple app for my own use. I want to have
We're creating a new consumer/public-facing ASP.Net web app. There are two concerns: --Use cookie
I am creating console app, involving lots of services. I want to display a
This is keeping me sleepless... I'm creating a slideshow kind of app. Let's say
I am creating an app in which on clicking on button user can send
I'm creating an android app which will call a method which parses the selected
So, I've written this convenience method as a solution to the problem where creating
I'm creating an app that needs to be accessed by both a web front
We are creating an app that uses modules which are dynamically loaded into 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.