Solved

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

Posted on 2012-04-05
7
244 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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