Welcome Developers!

in

Welcome!

in

Add the IFPC Iframe Demo

Last post 05-02-2009 8:40 PM by ProfilePlugins. 17 replies.
Page 1 of 2 (18 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-13-2009 12:40 PM

    Add the IFPC Iframe Demo

  • 01-13-2009 12:50 PM In reply to

    Re: Add the IFPC Iframe Demo

     Excellent Rhonda!

    Does this application has any template we can use to test?

    I triedto use the values in the example (template1, param1, value1) but it failed.

  • 01-13-2009 3:54 PM In reply to

    Re: Add the IFPC Iframe Demo

     Not yet, but I'll check into it. :)

  • 01-16-2009 1:45 PM In reply to

    Re: Add the IFPC Iframe Demo

     We're hoping to get this out after the weekend. At least that is the goal :)

  • 01-16-2009 3:32 PM In reply to

    Re: Add the IFPC Iframe Demo

     will this work for profile and home too, or just canvas?  I was told you cannot have an iframe on profile and home?

  • 01-20-2009 1:42 PM In reply to

    Re: Add the IFPC Iframe Demo

    Having an iFrame on the home and profile violates our application guidelines:

     Any portion of your MySpace Applications and MySpace Application Content that will appear on a MySpace Profile or Homepage must not:

    • contain or create SCRIPT tags pointing to external sources (including Google analytics), CSS, or IFramed content; or
    • contain Advertisements.

    One alternative is to use makeRequest.Note that makeRequest is meant to pull in data, not HTML/JavaScript code. If you use makeRequest to create an iFrame or pull in an external JavaScript file, you will be violating our application guidelines.

     If you want to use PostTo/Invites/etc.on the Home/Profile, just make those surfaces JavaScript/HTML.

    Follow us on twitter:
    http:www.twitter.com/myspacedevteam

    Follow the MDP profile
    http://www.myspace.com/myspacedeveloperplatform
  • 01-20-2009 7:42 PM In reply to

    Re: Add the IFPC Iframe Demo

     Quick question.

     I was able to successfully get the postTo to work on an external iframe, but I can't seem to get a loop to work so I can send out multiple requests... Do you guys have any sort of example code that I can work with on this?

  • 01-22-2009 5:41 AM In reply to

    Re: Add the IFPC Iframe Demo

    Hi,

    Not at this time no. I can request it, but it won't happen right away and I could not provide an ETA right now.

    Hopefully someone here can share with you how they're doing it?

    Rhonda

  • 01-22-2009 5:51 PM In reply to

    Re: Add the IFPC Iframe Demo

     Rhonda,

     Do you know if the new new iframe library works outside of Myspace or just within Myspace? 

  • 01-22-2009 7:26 PM In reply to

    Re: Add the IFPC Iframe Demo

     yes within the addable/instalable apps. they;'re working on something new for myspaceid

     

    That will be coming at a later date *from what I understand*

  • 01-27-2009 4:52 AM In reply to

    Re: Add the IFPC Iframe Demo

     Rhonda,

     

    What's the difference between addable/installable apps and MyspaceID?

     

    Is it just a difference in the authentication process? The authentication process for MyspaceID is explained here: http://developer.myspace.com/community/myspace/dataavailability.aspx . I figured that was the only way to authenticate apps outside of Myspace. What's different for external addable/installable apps in terms of the authentication process (besides that the user is adding an app to his list of apps) and where I can read about it?


  • 02-13-2009 12:24 AM In reply to

    Re: Add the IFPC Iframe Demo

    I;ve tried to test my app with another developer. So I used tthis IFPC from the demo to share this app with my frind. I see the app invitaion dlgbox come up, and then I click Send. I  even get a return message saying 's' (for SUCCESS - check code below). Howver the fiend to whom's sending the SHAREPP request does no see the invite. Wondering what's going on??

    function inviteFriends(){
    MyOpenSpace.MySpaceContainer.get().registerParam("panelId", "apppanel_XXX_canvas");
    MyOpenSpace.MySpaceContainer.get().registerParam("localRelay", "http://XXXX/myspace/XXX/ifpc_relay_external001.html");

    var container = MyOpenSpace.MySpaceContainer.get();

    var messageText = "My cool message";

    var postback = function(response){
         
         if (response.errorMessage){
          alert(response.errorMessage);
          return; 
         }
         switch (response){
          case MyOpenSpace.PostTo.Result.ERROR:
           alert("e");
          break;
          case MyOpenSpace.PostTo.Result.CANCELLED:
           alert("c");
          break;
          case MyOpenSpace.PostTo.Result.SUCCESS:
           alert("s");
          break;     
         }
         
    }

    var params = {};
    params[MyOpenSpace.Message.Field.TITLE] = "title";
    params[MyOpenSpace.Message.Field.TYPE] = MyOpenSpace.PostTo.Targets.SHARE_APP; //This can be SHARE_APP or COMMENTS

    //The recipient information can be retrieve using the REST API
    var recipientId = "XXX";

    var recipientThumbnail = "http://c4.ac-images.myspacecdn.com/images02/34/m_b6316f12f68545a4a1701d2f44e6ad8f.jpg"; //Set the url of the Thumbnail image
    var recipientName = "fktest4";//Set the name of the recipient
    var recipientProfileUrl = "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=450997587"; // Set the url of the profile of the recipient

    var message = container.newMessage(messageText, params);
    // If not post back method is required you can set it to undefined.
    container.postTo(message, postback, recipientId, recipientName, recipientThumbnail, recipientProfileUrl);

    //alert(1);
    }

     

    can anyone tell me what I'md doing wrong?

  • 02-24-2009 11:18 AM In reply to

    Re: Add the IFPC Iframe Demo

    I'm not sure if this is your case, but the same thing was happenig to me because the friend I was inviting already had the application installed.

  • 02-24-2009 11:30 AM In reply to

    Re: Add the IFPC Iframe Demo

     Hi, Addable apps are considered 'installable' but we don't really install anything on a member's profile. 

    Addable apps are apps where the source code is hosted HERE on the surfaces we provide for you. MySpace ID apps are more when a site uses myspace ID to link a member to their myspace account from another website. 

    http://www.sfoodie.com/ is a good example of how myspace ID works, although it's just an example. :) Doesn't do to much except show you how it works on the website side of myspace ID

  • 03-11-2009 9:57 AM In reply to

    Re: Add the IFPC Iframe Demo

    Activities seemed to be working fine for me, but then I realized it was working only for the user who created the application. When I tried it with another user (also listed among the application's developers) it didn't work. So I went back to the demo application and tried to use the templates recently created for it, but I got the same behavior.

    The error occurs in the preview, and all I could find out is that the last call:

     http://api.myspace.com/jsonp-api-v1.svc/jsnp/users/402830106/applications/124833/templates/test1/preview?jsonp=loadPreviewCallBack&templateParameters=%7B%7D

     has the following response:

    loadPreviewCallBack({"errorCode":"500","errorMessage":"Index was out of range. Must be non-negative and less than the size of the collection.\u000d\u000aParameter name: index"})
Page 1 of 2 (18 items) 1 2 Next >