Solved

How to create a Login with Facebook on a form?

Posted on 2011-03-18
11
564 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&quot;,&#039;confirm_phone&#039;, &#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:johndoeherty
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 6

Expert Comment

by:johndoeherty
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:
johndoeherty 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Microsoft Edge 9 81
changeXy challenge 13 58
website content maintenance 3 57
Re-position sub-options beneath the TAB 7 42
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This is about my first experience with programming Arduino.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

17 Experts available now in Live!

Get 1:1 Help Now