FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Oct 18, 2011, 6:34 PM
57 Posts

SBT Facebook endpoint question

  • Category: APIs
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags: SBT endpoint
  • Replies: 2

if I am not misstaking.......com.ibm.xsp.extlib.renderkit.html_extended.facebook.FacebookClientRenderer requires APPId as input into Facebook JS Init method. while the appid is user input, being read into com.ibm.xsp.extlib.component.facebook.UILogin, and further being used by com.ibm.xsp.extlib.renderkit.html_extended.facebook.LoginRenderer

I do see the getter setter for login button, and also the property registration

But why I cant even see the appId property on my control???
 
<component>
        <description>Facebook Login Button.</description>
        <display-name>Login Button</display-name>
        <component-type>com.ibm.xsp.extlib.facebook.login</component-type>
        <component-class>com.ibm.xsp.extlib.facebook.component.UILogin</component-class>

       <property>
              <description>A comma separated list of extended permissions.</description>
              <display-name>perms</display-name>
              <property-name>perms</property-name>
              <property-class>java.lang.String</property-class>
              <property-extension>
                <designer-extension>
                      <category>basics</category>
                </designer-extension>
              </property-extension>
        </property>
       
        <property>
              <description>The App ID that you need to use the SDK. Register your app here: http://www.facebook.com/developers.</description>
              <display-name>appId</display-name>
              <property-name>appId</property-name>
              <property-class>java.lang.String</property-class>
              <property-extension>
                <designer-extension>
                      <category>basics</category>
                </designer-extension>
              </property-extension>
        </property>       
       
        <property>
              <description>The maximum number of rows of profile pictures to display. Default value: 1.</description>
              <display-name>max-rows</display-name>
              <property-name>max-rows</property-name>
              <property-class>java.lang.String</property-class>
              <property-extension>
                <designer-extension>
                      <category>basics</category>
                </designer-extension>
              </property-extension>
        </property>       
       
        <property>
              <description>Whether or not to show faces (true of false).</description>
              <display-name>show_faces</display-name>
              <property-name>show_faces</property-name>
              <property-class>java.lang.String</property-class>
              <property-extension>
                <designer-extension>
                      <category>basics</category>
                </designer-extension>
              </property-extension>
        </property>
       
        <property>
              <description>The width of the button.</description>
              <display-name>width</display-name>
              <property-name>width</property-name>
              <property-class>java.lang.String</property-class>
              <property-extension>
                <designer-extension>
                      <category>basics</category>
                </designer-extension>
              </property-extension>
        </property>
              
        <component-extension>
            <base-component-type>javax.faces.Component</base-component-type>
            <component-family>com.ibm.xsp.extlib.facebook.login</component-family>
            <renderer-type>com.ibm.xsp.extlib.facebook.login</renderer-type>
            <tag-name>fbLoginButton</tag-name>
              <designer-extension>
                <in-palette>true</in-palette>
                <category>Facebook</category>
              </designer-extension>
        </component-extension>  
    </component>
 
 
Oct 19, 2011, 4:14 AM
57 Posts
Re: SBT Facebook endpoint question
just compare the property configuration file in source code and the one in the plugin dependency
 
the appId property is really missing.....for facebook login button
com.ibm.xsp.extlibx.sbt     extlib-sbt.xsp-config
 
isn't that a bug??
Oct 19, 2011, 9:06 AM
4 Posts
Re: SBT Facebook endpoint question
The appId needs to be defined in the faces-config.xml. Search for facebook.

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.