500 error from Facebook when attempting to create group -


I'm trying to code a Facebook app that can create groups, but it's not working. My minimum is the perfect example, which can hit you (I could not get the Facebook API to work on JSFDDL), as follows:

  & lt ;; DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Create a group & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script & gt; Window.fbAsyncInit = function () {FB.init ({appId: '784633881599418', xfbml: true, version: 'v2.2'}); Document.getElementById ('create'). AddEventListener ('click', function) {FB.login (function () {FB.ui ({method: 'game_group_create', name: 'Test Group', Description: 'This is a test. Only one exam., Privacy: 'Off'}, function (feedback) {if (feedback and response.id) {warning ('success:' + response.id);} and {warning ('error.');}})}} ;}, False); }; (Function (D, S, ID) {var js, fjs = d.getElementsByTagName (s) [0]; if (DAJ ElementBiID (ID)) {return;} JS = D. Socket agreement (S ); Jind = id; js.src = "//connect.facebook.net/en_us/sdk/debug.js"; fjs.parentNode.insertBefore (js, fjs);} (document, 'script', ' Facebook-JSSDK ')); & Lt; / Script & gt; & Lt; Button ID = "Create" & gt; Create a group & lt; / Button & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

When users click on the button, they are prompted to log in (if they are not already) and authorize the app (if they are not already As you might expect, however, a Facebook box appears with a continuous loading indicator in the middle of the window. In the meantime, the following errors are logged in the console:

  • Get https: //www.facebook.com/login.php? Skip_api_login = 1 & amp; i_key = 784633881599418 ... 4d12677ce003e1ddf.googledrive .com% 252Ff13eb6ab9% 26relation% 3Dparent.parent 500 (internal server error)
  • refuses to display 'https://www.facebook.com /login.php?skip_api_login= 1 & amp; Api_key = 784633881599418 ... 4d12677ce003e1ddf.googledrive.com% 252Ff13eb6ab9% 26relation% 3Dparent.parent 'in a frame because it sets' X-Frame-Options' to' DENY '.

What's going on and how can I fix this?

So I commented FB.login (function () { and related < Code>}); and it is decided.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -