Solved

How to create a Login with Facebook on a form?

Posted on 2011-03-18
11
565 Views
Last Modified: 2013-11-13
Hi
I've looked at Facebook developer pages until I go blue in the face. I am looking for a simple way to add the "Login with Facebook" link to our forms so that people with Facebook accounts can quickly fill in forms to our site. I've seen this everywhere, but cannot find simple instructions or guidelines.

Hopefully not needed, but it looks like I must get a appid from Facebook. Any way to avoid? At present the relevant page in FB impressively comes up with a message mainly in HTML:-
"Your account must be verified before you can take this action. Please verify your account by adding your <a onclick="var newwindow = window.open(&quot;http:\/\/www.facebook.com\/confirmphone.php",'confirm_phone';, &#039;height=350, width=520, left=100, top=100, resizable=yes, scrollbars=no, toolbar=no, status=no&#039;);if (newwindow) &#123; newwindow.focus();&#125; else &#123; alert(&quot;A pop-up blocker may be disabling the the mobile verification window.&quot;);&#125;">Mobile phone</a> or <a href="https://secure.facebook.com/cards.php" target="_blank">Credit/debit card</a>."!
0
Comment
Question by:pld51
11 Comments
 
LVL 24

Assisted Solution

by:lenamtl
lenamtl earned 75 total points
ID: 35172386
0
 

Author Comment

by:pld51
ID: 35194739
Sorry for the delay in answering. The tutorial looks good, but it looks like you have to create an application first. Is there no way to avoid this?
0
 
LVL 6

Expert Comment

by:Mike D
ID: 35276985
No, there is no way to avoid this. The App and with it the app ID are how facebook maintain the connection between your website and their database.
What's your problem? Just verify your account (you do have a mobile phone I presume), set up your app and be done...

Greets
JD
0
 

Author Comment

by:pld51
ID: 35281044
Thanks johndoeherty:
Yes, have mobile but in Costa Rica, so first attempt failed to get SMS. Not easy. And how/what to create as app also a mystery.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 6

Expert Comment

by:Mike D
ID: 35281519
Did it work now with the SMS? If Yes your ready to go!
Install the developer app, Set up an app (you don't really have to fill all the fields out since you only need the app id and secret) and use them as described above.

JD
0
 

Author Comment

by:pld51
ID: 35281814
Not tried again with SMS. I realize I am not still clear on process.

I have a personal facebook profile which is one of the administrators of a new company page just being created. The Facebook Connect we want to create is for the company, ie objective is for people to fill in forms on our company website using FB Connect.

So do I get my personal profile verified, and create an app for the personal account? Or should it be somehow linked to the FB page for the company?
0
 
LVL 30

Assisted Solution

by:MlandaT
MlandaT earned 75 total points
ID: 35282105
http://msdn.microsoft.com/en-us/windows/ee702803

You will need to get you profile verified. This is done for security reasons.
0
 
LVL 6

Accepted Solution

by:
Mike D earned 350 total points
ID: 35282128
Yes, you get your personal profile verified and create the app. The app is your 'property'. It could be a stand-alone app (so called 'canvas' app) which lives by itself under a URL like http://apps.facebook.com/name_of_your_app or a 'profile' app which lives on your (or any other) business page and shows up in the left navigation (what used to be 'tabs').
In your case it would be neither, you just need the app id and secret as a type of identification so facebook knows who is accessing their API.

Don't confuse this with the 'like' (or 'share' etc) button or the like or feed box - these either post a link to your website on the persons profile or display what's going on on your company page.

JD
0
 

Author Closing Comment

by:pld51
ID: 36054860
Thanks for all the help, and extreme apologies for my long delay at the end. Help appreciated!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

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

25 Experts available now in Live!

Get 1:1 Help Now