php
  • facebook
  • permissions
  • registration
  • 2011-06-22 160 views 0 likes 
    0

    我是新來的Facebook註冊插件。我在Facebook開發者網站上實施了註冊表格的虛擬代碼。但是當我通過這個註冊表格註冊時。它提供離線訪問權限,發送電子郵件user_about_me。是否可以給這個註冊表單提供任何特定的權限?fb:註冊插件權限

    <fb:registration redirect-uri="http://developers.facebook.com/tools/echo"  
    fields='[ {"name":"name"}, 
        {"name":"foo","description":"Type foo","type":"text"}, 
    {"name":"bar","description":"Type bar","type":"text"}, 
    {"name":"facebooker","description":"Pick Paul","type":"select","options": 
    {"coder":"Paul","pm":"Austin","partners":"Cat"}}, 
    {"name":"check","description":"Check this","type":"checkbox"}, 
    {"name":"date","description":"Dec 16 2010","type":"date"}, 
    {"name":"city","description":"Calgary","type":"typeahead","categories": 
        ["city"]}]' 
    onvalidate="validate"></fb:registration>  
    

    代碼i。從facebook registration page使用

    +0

    snippet of your code? – genesis

    +0

    @genesis:我附上了代碼。 – insomiac

    回答

    2
    fields="name,birthday,gender,location,email" 
    

    -

    <fb:registration 
        fields="name,birthday,gender,location,email" 
        redirect-uri="http://developers.facebook.com/tools/echo/" 
        width="530"> 
    </fb:registration> 
    

    http://developers.facebook.com/docs/plugins/registration/

    和權限的列表:http://developers.facebook.com/docs/authentication/permissions/

    +0

    所以我可以在字段中定義權限? – insomiac

    +0

    我覺得這樣.....- – genesis

    +0

    我不認爲它會工作,因爲字段提供了一種方法來定義註冊表單中的文本框。 – insomiac

    0

    如果您需要超出可用字段的權限,則需要將用戶重定向到OAuth對話框,其範圍參數設置正確。

    請參閱https://developers.facebook.com/docs/authentication/

    相關問題