Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook API's fb:registration returning "Invalid 'client_id'" when not connected to Facebook
    primarykey
    data
    text
    <p>I'm trying to use Facebook's registration tool for my website. I would like to allow Facebook users to login seamlessly to my website, but also non-Facebook users to create an account through that unified UI.</p> <p>I'm using the <code>&lt;fb:registration&gt;</code> tag for that purpose. If I'm already connected to Facebook when arriving to the page, everything works as expected (the form is prefilled with information from my Facebook account). But if I'm not connected to Facebook, the following error is displayed: <code>Invalid 'client_id'.</code>.</p> <p>What am I doing wrong?</p> <p>Thanks very much for your help.</p> <p>You'll find below the HTML code rendered from the server:</p> <pre><code>&lt;!doctype html&gt; &lt;html xmlns:fb='http://www.facebook.com/2008/fbml'&gt; &lt;head id='head'&gt; &lt;title&gt;MyWebSite - Signup&lt;/title&gt; &lt;link rel='stylesheet' type='text/css' href='/client/Core.css'/&gt; &lt;script language='JavaScript' type='text/javascript' src='/client/jQuery.js'&gt;&lt;/script&gt; &lt;script type='text/javascript'&gt; function initialize() { $.getScript('client/Core.js'); $.getScript(document.location.protocol + '//connect.facebook.net/en_US/all.js'); } window.fbAsyncInit = function() { FB.init({ appId : 123456789, // replaced here by my App ID session : {}, status : true, cookie : true, xfbml : true }); FB.Event.subscribe('auth.login', function() { window.location.href = 'DoLogin'; }); }; &lt;/script&gt; &lt;/head&gt; &lt;body onload='initialize();'&gt; &lt;span id='fb-root'&gt;&lt;/span&gt; &lt;fb:registration fields='[{"name":"name"},{"name":"first_name"},{"name":"last_name"},{"name":"email"},{"name":"location"},{"name":"gender"},{"name":"password","view":"not_prefilled"},{"name":"captcha"}]' redirect-uri='http://172.16.100.31/DoSignup' width='600' fb_only='false' allowTransparency='true'&gt; &lt;/fb:registration&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload