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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:56:00+00:00 2026-05-23T04:56:00+00:00

I am trying to impliment facebook registration pluging from last three weeks, to check

  • 0

I am trying to impliment facebook registration pluging from last three weeks, to check the username avaiablity I am using jquery and JSON, accourding to this http://developers.facebook.com/docs/plugins/registration/advanced/ guide, with the following code I am able to send username to my server that is a a c# page to check either it is available or not, but how to tell back?
Problem is this I don’t know how to send message from c# page to the calling scritp, and how to use read it here.

<body>

<div id="fb-root"></div>

<script src="http://connect.facebook.net/en_US/all.js#appId=134552926621797&xfbml=1"></script>

<fb:registration redirect-uri="http://dev2.urecommendme.com/test3.aspx" 
  fields='[{"name":"name"},
           {"name":"username","description":"Username","type":"text"}]' 
  onvalidate="validate_async"></fb:registration> 

<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script>
    function validate_async(form, cb) {
        $.getJSON('http://dev2.urecommendme.com/test01.aspx?username=' + form.username + '&callback=?',
    function (response) {
        if (response.error) {
            // Username isn't taken, let the form submit
           cb();
        }
        alert(cb.toString());

    });
    }
</script> 
</body>

Returning message should be something like this

<script src="http://graph.facebook.com/shahidgfdgd?callback=jsonp1307613510850">
jsonp1307613510850({
"error": {
"type": "OAuthException",
"message": "(#803) Some of the aliases you requested do not exist: shahid"
}
});
</script>

This is my third week to implimenting it please guide me so I can complete this task, thanks.

  • 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-23T04:56:01+00:00Added an answer on May 23, 2026 at 4:56 am

    FB registration page should look like as follows

    <body>
    
    <div id="fb-root"></div>
    
    <script src="http://connect.facebook.net/en_US/all.js#appId=134552926621785&xfbml=1"></script>
    
    <fb:registration redirect-uri="http://dev2.urecommendme.com/test3.aspx" 
      fields='[{"name":"name"},
               {"name":"username","description":"Username","type":"text"}]' 
      onvalidate="validate_async"></fb:registration> 
    
    <script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
    <script>
        function validate_async(form, cb) {
            $.getJSON('test02.aspx?username=' + form.username,
        function (response) {
            if (response.error) {
                // Username isn't taken, let the form submit
                cb();
            }
            cb({ username: 'That username is taken' });
        });
        }
    </script> 
    
    </body>
    

    Note how I mentioned server file name (it is without full URL, as both files were on same root dir) in validate_async(form, cb) function

    
            $.getJSON('test02.aspx?username=' + form.username,
    

    Test02.aspx page should look like as follows

    
    
    

    Note no html, body or head tags in test02.aspx
    (Test02.aspx.cs) should look like

    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Newtonsoft.Json;
    using System.Text;
    
    public partial class test02 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e1)
        {
            StringBuilder JSON = new StringBuilder();
    
            //validate from your database and execute one of the following two lines.
    
           JSON.Append("{\"error\":\"Exist\"}"); // username is taken
    
         //  JSON.Append("{\"anything\":\"Not Exist\"}");
    
    
            Response.Write(JSON.ToString());
    
            Response.End(); 
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement Facebook Connect on a website with .NET MVC using C#.
I'm trying to implement single sign-on using facebook in my ruby sinatra app. So
Trying to implement the example from here. Facebook Share passes along the URL of
I am trying to implement facebook Connect to my cakephp Application. i am using
Hi i was trying to implement facebook login for my django app using django-facebook
trying to implement a dialog-box style behaviour using a separate div section with all
Am trying to implement a generic way for reading sections from a config file.
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I'm trying to implement a Facebook like toolbar on the bottom of the screen
I'm trying to implement a facebook search in my system (auto suggest while typing).

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.