Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create a Login with Facebook on a form?

Posted on 2011-03-18
11
Medium Priority
?
574 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 27

Assisted Solution

by:lenamtl
lenamtl earned 300 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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
 
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 31

Assisted Solution

by:MlandaT
MlandaT earned 300 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 1400 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

885 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