2012-08-08 108 views
1

我正在使用Facebook註冊插件,它似乎已停止工作,但我不知道爲什麼。會發生什麼是,而不是加載註冊表單,它只是顯示移動酒吧加載圖標(並永不加載)。我有必要的憑據,在過去,當我的憑證錯誤時,會在表單通常顯示的空間中顯示錯誤消息。Facebook註冊插件not Loading

一兩件事我注意到的是,當我參觀registration's FB page我可以看到兩個例子沒有自定義字段,但我不能看到自定義字段的例子。在我的用法中,我使用自定義字段。也許它與使用自定義字段和/或防火牆有關?

所以現在用戶無法註冊。請幫忙!謝謝!

這裏是我的代碼:

<div id="fb-root"></div> 
    <%= javascript_include_tag "https://connect.facebook.net/en_US/all.js#appId=myappnumberiscorrecthere&xfbml=1" %> 
    <% site_url = MyApplication::Application.config.site_url %> 
    <fb:registration 
     fields="[ 
    {'name':'name'}, 
    {'name':'first_name'}, 
    {'name':'last_name'}, 
    {'name':'email'}, 
    {'name':'gender'}, 
    {'name':'birthday'}, 
    {'name':'username', 'description':'User Name', 'type':'text'}, 
    {'name':'postal_code', 'description':'Postal Code', 'type':'text'}, 
    {'name':'password'}, 
    {'name':'captcha'} 
    ]" 
     redirect-uri="https://<%= @domain + "." + site_url %>/users" 
     width="530"> 
    </fb:registration> 
</div> 

回答

2

取出驗證碼現場。

試圖用自定義字段來加載自己的文檔頁面,並使用您所提供的代碼時,當我遇到同樣的問題。

通過刪除驗證碼,它似乎工作。我認爲在Facebook的結尾有一個錯誤。

0

它改變從

fields="[ 
    {'name':'name'}, 
    {'name':'first_name'}, 
    {'name':'last_name'}, 
    {'name':'email'}, 
    {'name':'gender'}, 
    {'name':'birthday'}, 
    {'name':'username', 'description':'User Name', 'type':'text'}, 
    {'name':'postal_code', 'description':'Postal Code', 'type':'text'}, 
    {'name':'password'}, 
    {'name':'captcha'} 
    ]" 

fields=[ 
    {'name':'name'}, 
    {'name':'first_name'}, 
    {'name':'last_name'}, 
    {'name':'email'}, 
    {'name':'gender'}, 
    {'name':'birthday'}, 
    {'name':'username', 'description':'User Name', 'type':'text'}, 
    {'name':'postal_code', 'description':'Postal Code', 'type':'text'}, 
    {'name':'password'}, 
    {'name':'captcha'} 
    ]"