Topic
  • 3 replies
  • Latest Post - ‏2013-07-27T13:43:31Z by ds.me
SystemAdmin
SystemAdmin
37422 Posts

Pinned topic Building third-party Embedded Experience gadgets for IBM Connections Actvty

‏2013-02-11T07:56:55Z |
Hi,
I am working on the example "Building third-party Embedded Experience gadgets for IBM Connections Activity Stream" and the link is:

http://www-10.lotus.com/ldd/lcwiki.nsf/dx/Building_Embedded_Experience_gadgets_for_third-_party_IBM_Connections_Activity_Streams

There is an error in sixth step: in the "categoryName" part, a JSON object is expected but instead a JSON array is given, instead of "categoryName = http://WidgetCategories.NONE" it must be "categoryName = WidgetCategories.NONE".
Also the "http://test.host.com/gadget/FacebookEE.xml" link is broken.
And there is a space before "category" in Listing 4 in function showResults() in "entry.from. category".

I created an app on the Facebook developers website and recorded the App ID\Secret.
I formed the FacebookEE.xml and completed all the steps, started the wsadmin client and did the registration steps and I obtained the gadget ID returned by step 6 and binded the gadget in step 8.

I imported the SSL certificate from the Facebook API server to WAS.
I added the gadget to the widgets page of IBM Connections, it loads the gadget, but nothing is displayed in the gadget except the title, and there are no errors in the firebug.

My problem is that I did all the steps necessary but the gadget doesn't display anything.
FacebookEE.xml is attached.
Any of your help is appreciated, thanks.
Updated on 2013-02-11T08:03:55Z at 2013-02-11T08:03:55Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: Building third-party Embedded Experience gadgets for IBM Connections Actvty

    ‏2013-02-11T08:03:55Z  
    In step six it must be "categoryName = WidgetCategories.NONE", there shouldn't be any square brackets.
  • a.renzi
    a.renzi
    1 Post

    Re: Building third-party Embedded Experience gadgets for IBM Connections Actvty

    ‏2013-04-20T07:32:15Z  
    In step six it must be "categoryName = WidgetCategories.NONE", there shouldn't be any square brackets.

     

    Hi i'm trying to execute it without square brackets but it doesn't work.
     
    (I'm on Connection 4.0)
     
    Please can you help me to understand where is the error?
     
    Thank you
     

     

    wsadmin>NewsWidgetCatalogService.addWidget(title="Facebook EE gadget", text="Facebook EE For Activity Streams.", url="http://test.host.com/gadget/FacebookEE.xml",categoryName= WidgetCategories.NONE, isGadget=TRUE,appContexts= [WidgetContexts.EMBEDXP], policyFlags= [GadgetPolicyFlags.TRUSTED], prereqs= [])

     

    WASX7015E: Exception running command: "NewsWidgetCatalogService.addWidget(title="Facebook EE gadget", text="Facebook EE For Activity Streams.", url="http://test.host.com/gadget/FacebookEE.xml",categoryName= WidgetCategories.NONE, isGadget=TRUE,appContexts= [WidgetContexts.EMBEDXP], policyFlags= [GadgetPolicyFlags.TRUSTED], prereqs= [])"; exception information:
     com.ibm.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
      File "<input>", line 1, in ?
    NameError: NewsWidgetCatalogService
     

     

  • ds.me
    ds.me
    1 Post

    Re: Building third-party Embedded Experience gadgets for IBM Connections Actvty

    ‏2013-07-27T13:43:31Z  
    • a.renzi
    • ‏2013-04-20T07:32:15Z

     

    Hi i'm trying to execute it without square brackets but it doesn't work.
     
    (I'm on Connection 4.0)
     
    Please can you help me to understand where is the error?
     
    Thank you
     

     

    wsadmin>NewsWidgetCatalogService.addWidget(title="Facebook EE gadget", text="Facebook EE For Activity Streams.", url="http://test.host.com/gadget/FacebookEE.xml",categoryName= WidgetCategories.NONE, isGadget=TRUE,appContexts= [WidgetContexts.EMBEDXP], policyFlags= [GadgetPolicyFlags.TRUSTED], prereqs= [])

     

    WASX7015E: Exception running command: "NewsWidgetCatalogService.addWidget(title="Facebook EE gadget", text="Facebook EE For Activity Streams.", url="http://test.host.com/gadget/FacebookEE.xml",categoryName= WidgetCategories.NONE, isGadget=TRUE,appContexts= [WidgetContexts.EMBEDXP], policyFlags= [GadgetPolicyFlags.TRUSTED], prereqs= [])"; exception information:
     com.ibm.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
      File "<input>", line 1, in ?
    NameError: NewsWidgetCatalogService
     

     

    Adding the widget (gadget) to the News widget Catalog - can really just be done in the GUI, but this worked for me:

    wsadmin>NewsWidgetCatalogService.addWidget(title="Facebook Gadget", text="Facebook example gadget from Shindig.", url=", isGadget=TRUE, appContexts= [WidgetContexts.EMBEDXP], policyFlags= [GadgetPolicyFlags.TRUSTED], prereqs= [])

    N.B. I removed categoryName= [WidgetCategories.NONE],  from the example so that it worked !

    Updated on 2013-07-27T13:43:53Z at 2013-07-27T13:43:53Z by ds.me