Solved

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

Posted on 2012-04-05
7
241 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now