0

opensocial App - not Running

Hi All,

When I run my Opensocial App in YAP it gives me this error.

Internal fetch error [url=http://hosting.gmodules.com/ig/gadgets/file/113856488984096783541/yahoo_Ortist.xml][reason=[http_code=403]]

Can any one help me with that or am I missing something here.

Thanks
Dinesh

by
1 Reply
  • Hello Dinesh,

    I looked over the link you sent and there seems to be a few issues that will need to be addressed in order to integrate your application into YAP. It appears that you're porting your application from another OpenSocial container that uses the gadget xml spec file to load your application. Currently YAP does not support this gadgets xml spec, but it is coming down the pipeline. Please see http://developer.yahoo.com/yap/guide/yap-anatomy.html for information on YAP applications or http://developer.yahoo.com/yap/guide/yap-opensocial.html for information about YAP OpenSocial compliance.

    There are a few other items that I can see off hand:
    - The canvas (or small view) only accepts HTML or YML. The JavaScript will need to be stripped in order to work
    - I see some extensive JavaScript in your canvas (or large) view. Caja (Secure JavaScript parser) may cause some issue with your JavaScript. Please see http://developer.yahoo.com/yap/guide/caja-support.html for information on this.
    - Your CSS for the large view contains some IE browser related hacks. Caja will report these back as an error.

    These are a few issues that I can see off hand (from the error url that was provided). I would recommend viewing the documentation on YAP available at http://developer.yahoo.com/yap/guide/index.html. If you are having trouble using the gadgets JavaScript requests you may also want to look over the available server side PHP SDK (http://developer.yahoo.com/social/sdk/), the ActionScript SDK (http://developer.yahoo.com/flash/yos/) and/or YQL (http://developer.yahoo.com/yql/)

    If you run into roadblocks along the way please let us know and we'd be happy to assist.

    Jonathan LeBlanc
    Senior Software Development Engineer
    Yahoo! Developer Network
    0
  • Hi Jonathan LeBlanc,

    Thanks for tour reply. Do you by any chance have a sample opensocial app code. I did try to execute the gift code given by you guys. But even that's not working. The thing is I have my app running in most of the opensocial containers with the same gadget spec codes.

    I guess from your explanation below in case of Yahoo its totally different and doesn't follow the same gadget spec as all the other opensocial containers.

    I that case what do you suggest
    1. to use opensocial on YAP
    2. or to use the rest based YAP social API provided by yahoo

    Do let me know

    Thanks
    Dinesh

    QUOTE (Jon @ Nov 3 2008, 01:26 PM) <{POST_SNAPBACK}>
    Hello Dinesh,

    I looked over the link you sent and there seems to be a few issues that will need to be addressed in order to integrate your application into YAP. It appears that you're porting your application from another OpenSocial container that uses the gadget xml spec file to load your application. Currently YAP does not support this gadgets xml spec, but it is coming down the pipeline. Please see http://developer.yahoo.com/yap/guide/yap-anatomy.html for information on YAP applications or http://developer.yahoo.com/yap/guide/yap-opensocial.html for information about YAP OpenSocial compliance.

    There are a few other items that I can see off hand:
    - The canvas (or small view) only accepts HTML or YML. The JavaScript will need to be stripped in order to work
    - I see some extensive JavaScript in your canvas (or large) view. Caja (Secure JavaScript parser) may cause some issue with your JavaScript. Please see http://developer.yahoo.com/yap/guide/caja-support.html for information on this.
    - Your CSS for the large view contains some IE browser related hacks. Caja will report these back as an error.

    These are a few issues that I can see off hand (from the error url that was provided). I would recommend viewing the documentation on YAP available at http://developer.yahoo.com/yap/guide/index.html. If you are having trouble using the gadgets JavaScript requests you may also want to look over the available server side PHP SDK (http://developer.yahoo.com/social/sdk/), the ActionScript SDK (http://developer.yahoo.com/flash/yos/) and/or YQL (http://developer.yahoo.com/yql/)

    If you run into roadblocks along the way please let us know and we'd be happy to assist.

    Jonathan LeBlanc
    Senior Software Development Engineer
    Yahoo! Developer Network
    0
  • For right now there are some differences in the full OpenSocial gadgets spec with other containers. We are currently working on making the process as seamless as possible for developers to port applications from one container to another with a fully compliant spec but for our first initial release there will need to be some massaging done to get everything to fit well within the platform and to pass the Caja code security parser. Information on supported OpenSocial calls are here: http://developer.yahoo.com/yap/guide/os-supp-features.html.

    The team I'm on here has actually gone through what you're going through right now. We had a heavy JavaScript (with YUI components) front-end app on MySpace that used the XML spec file as well. Since Caja is still in its infancy (even though you're going to see far less restrictions coming in the future as more features are white listed) you may have to do some work to get everything working correctly.

    What we did was to move the majority of our JavaScript code to the server side through PHP, using the PHP SDK provided in YAP to replace the OpenSocial user data fetching. This way we were sure that if the code base ran on our servers, it would run on YAP as well. The JavaScript we were left with was just a tiny amount to add dynamic features. We replaced some of the YUI components with the flash ASTRA libraries (http://developer.yahoo.com/flash/) and removed our browser specific CSS hacks (Caja will kill these as well but we're working on white listing a lot of the standard CSS hack techniques as they are valid design methods). We stripped our small view code to be just HTML / YML and linked the canvas view directly to the content that we wanted to display (no spec xml file needed here) - just link to what would normally be in between the canvas view tags of the XML spec file.

    So, for the current YAP implementation you'll probably want to look at a method such as that or to move towards somewhat of a flash implementation on the canvas view (flash not supported on the small view) using the yml swf tag.

    I'll be glad to help you in that implementation along the way if you run into any problems.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network

    QUOTE (dinesh k @ Nov 4 2008, 06:28 PM) <{POST_SNAPBACK}>
    Hi Jonathan LeBlanc,

    Thanks for tour reply. Do you by any chance have a sample opensocial app code. I did try to execute the gift code given by you guys. But even that's not working. The thing is I have my app running in most of the opensocial containers with the same gadget spec codes.

    I guess from your explanation below in case of Yahoo its totally different and doesn't follow the same gadget spec as all the other opensocial containers.

    I that case what do you suggest
    1. to use opensocial on YAP
    2. or to use the rest based YAP social API provided by yahoo

    Do let me know

    Thanks
    Dinesh
    0
This forum is locked.

Recent Posts

in Y!OS General Discussion