Facebook Registration plugin: "invalid_id" when logging out
I've just set up a Facebook Registration plugin here http://www.lexpressproperty.com/en/register.
I works like a charm but I encounter the following issue: whenever a user wants to logout (using the "x" next to his profile), he gets the following message:
Unable to load the registration form for . You may have previously blocked this app on Facebook. Go to your Facebook privacy settings to unblock this app. (Error: Invalid 'client_id'.)"
If the user then refreshes the page, the form is displayed correctly.
Solution is in sandbox status
I also had the same issue, really frustrating. But it was false alarm. Above solution worked like a charm.
I used the following, it works fine in all scenarios. Try this out. Note that you need to have a live url for the redirect_uri field in the same app domain specified in the Facebook app config.
<iframe src="https://www.facebook.com/plugins/registration?client_id=999999999999&redirect_uri=@ConfigCaller.redirectURI&fields=name,birthday,gender,location,email,first_name,last_name" scrolling="auto" frameborder="no" style="border:none" allowTransparency="true" width="100%" height="390"></iframe>