Solved

How to create facebook login from website which runs locally but has internet connectvity.

Posted on 2012-04-05
7
242 Views
Last Modified: 2012-04-24
I want to create facebook login on localhost for the website which i run locally.
0
Comment
Question by:searchsanjaysharma
  • 3
  • 3
7 Comments
 
LVL 9

Expert Comment

by:sachinpatil10d
ID: 37815261
0
 

Author Comment

by:searchsanjaysharma
ID: 37815305
Its giving error, how to correct it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head runat="server">

    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div id="fb-root">
  <!-- you must include this div for the JS SDK to load properly -->
</div>
<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '403156449697014', // App ID
      channelUrl : 'http://iconic.fabrics.co.uk', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });

    // Additional initialization code here
  };

  // 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>
    </div>
    <div class="fb-login-button">
   
    </form>
</body>
</html>
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 37815504
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

Author Comment

by:searchsanjaysharma
ID: 37815578
Thankx,

But i am getting the following error.

Given URL is not allowed by the Application configuration.
urlerrorfb.png
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 37816336
OK, This error comes when you are publishing the application with local machine URL
Can you show us the setting for your facebook application which you have made..
It will be easy to all of us....
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 37816742
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 37885182
ok
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question