2012-10-27 56 views
1

我在我的网站上使用FB注册iFrame代码。我已经按照http://developers.facebook.com/docs/plugins/registration/的所有文档,但我不明白为什么我有这个错误。我唯一能看到的就是一个红色框,上面写着"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'.)"我已经看过我说的关于应用程序被阻止的内容,但事实并非如此。该应用程序未被阻止。我甚至尝试用多个FB账户查看页面。此错误始终显示。我查看了我的应用程序设置,看看有没有错。有些报告称“沙盒模式”必须禁用,否则您可能会收到此错误,但我的使用已被禁用。一直都是。我尝试删除整个应用程序,并开始新鲜。这样做后,我得到相同的结果。Facebook注册无法正常工作“(错误:”client_id无效“。)”

也许值得一提的是,我的应用在应用中心列为“未列出”。许多人因为FB无法解释的原因而遇到这个问题。

App Detail Page Status: Live Your app detail page is now live and will appear in Search.

App Center Listing Status: Unlisted Your app is not listed because it does not have enough high ratings and user engagement to be listed in the App Center at this time. Please refer to your app's Insights page to view your app's user rating and engagement metrics, and view our App Center guidelines for more information.

另一件可能值得一提的事情是,我目前在网站的根目录上有登录和注册设置。我正在一个子目录中构建一个全新的站点,我试图放置新的FB登录和注册。这是否会以某种方式造成冲突?

谢谢!

回答

1

结帐这similar post,它可能会帮助你。您可能想从外部脚本标记中尝试解决方案Remove the #appId={YOUR_APP_ID}&xfbml=1。 希望它有帮助。顺便说一句,这也是一个reported bug

2

这与您的应用程序的应用程序中心状态无关。

在文档中的代码,该登记表的iframe嵌入,它看起来像这样:

<iframe src="https://www.facebook.com/plugins/registration?<br /> 
      client_id=113869198637480&<br /> 
      redirect_uri=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fecho%2F&<br /> 
      fields=name,birthday,gender,location,email" <br=""> 
     scrolling="auto"&lt;br /> 
     frameborder="no"&lt;br /> 
     style="border:none"&lt;br /> 
     allowTransparency="true"&lt;br /> 
     width="100%"&lt;br /> 
     height="330">&lt;br /> 
</iframe> 

- 当然与此代码的插件不正确加载,因为src网址你给的iframe地址无效,因此Facebook无法获取插件所需的参数。

删除其中的换行符,删除标记中没有业务的<br>元素。 (我想你可能会使用你的页面可能导致此,如果解释为一定是格式化你的代码输入文字的CMS)。

+0

你是什么意思src是无效的?这是在https://developers.facebook.com/docs/plugins/registration/ – djchez

+0

上的代码中提供的src。是的,它出于可读性的原因在URL中用换行符格式化。但是,当然,在您的_actual_代码中,__必须绝对没有换行符,尤其是在URL值内部没有'
'标签。 – CBroe

-2

你应该创建一个Facebook应用程序

获取应用程序ID并将其替换为注册页面中的Client_id

client_id=YOUR_APP_ID&
redirect_uri=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fecho%2F& fields=name,birthday,gender,location,email" scrolling="auto"<br /> frameborder="no"<br /> style="border:none"<br /> allowTransparency="true"<br /> width="100%"<br /> height="330"><br />