MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Problems of requestShareApp, i can't invite frineds in my APP

Last post 11-11-2008 2:06 AM by Pavel Grudina. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 08-05-2008 2:14 AM

    • zhang
    • Not Ranked
    • Joined on 07-28-2008
    • Posts 4

    Problems of requestShareApp, i can't invite frineds in my APP

    Hello, i am developing a myspace APP these days, but there is a problem i can't find the solution: i want implement the "invite friends" function, i had looked at this page :

    http://developer.myspace.com/community/myspace/da4.aspx ,and i followed the example, but there was a js error in my page:

    this.dataRequest_.endPoint_ has no properties.
     
    I don't know why, anyone can help me? thanks very much.
    Here is my code:
     
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/gadgets003.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/opensocialreference001.v07.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace006.Util.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace005.Entities.js'></script>
    
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace009.Mappers.v07.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace003.Enums.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace003.Widgets.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace016.Core.v07.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace007.Engine.js'></script>
    
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/json001.js'></script>
    <script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/ifpc002.js'></script>
     
    <h5>Invite friends:</h5>
    
    
    <div id="picker"></div>
    
    <script>
    
    MyOpenSpace.ClientLibraries.includeScript(MyOpenSpace.ClientLibraries.Scripts.MYSPACE_WIDGETS);
    
    MyOpenSpace.Widgets.Bootstrapper.createWidget("MyOpenSpace.Widgets.FriendPicker", function(p){window.friendPicker = p;},
       {
         element: "picker",
         buildSelectedUI: true,
         friendClickAction: sendAppAdd
       });
    
    function sendAppAdd(person){
    	if(person == null){
    	   return;
    	}
    	message = opensocial.newMessage("[sender] would like you to install this really super application [app].");
    	opensocial.requestShareApp(person.getField(opensocial.Person.Field.ID), message, function(){
    	   }
    	  );
    }
    
    </script>
    Filed under:
  • 08-05-2008 10:09 AM In reply to

    • Danny
    • Top 100 Contributor
    • Joined on 03-03-2008
    • Posts 36

    Re: Problems of requestShareApp, i can't invite frineds in my APP

    I have the same issue.. 

  • 08-06-2008 9:08 PM In reply to

    • zhang
    • Not Ranked
    • Joined on 07-28-2008
    • Posts 4

    Re: Problems of requestShareApp, i can't invite frineds in my APP

    I think the problem is because "cross-domain AJAX " in "External Application ".

    see this post: http://developer.myspace.com/Community/forums/t/2577.aspx 

    and see the solution: http://softwareas.com/cross-domain-communication-with-iframes 

    It seems we can use a "hack" to fix this, but i tried, it didn't work too.

    Could MDP guys give us a right solution? thanks you all.

  • 08-11-2008 9:48 AM In reply to

    • Danny
    • Top 100 Contributor
    • Joined on 03-03-2008
    • Posts 36

    Re: Problems of requestShareApp, i can't invite frineds in my APP

     any news on this?

  • 08-12-2008 11:51 PM In reply to

    Re: Problems of requestShareApp, i can't invite frineds in my APP

    Yes. Could someone from MySpace respond to this!!!

     -jjk

    Filed under:
  • 11-11-2008 2:06 AM In reply to

    Re: Problems of requestShareApp, i can't invite frineds in my APP

     Any ideas?

Page 1 of 1 (6 items)