MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

How do I implement the 'Invite' feature (requestShareApp)?

Last post 12-04-2008 3:01 PM by steve [Frozzen Sun]. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 08-29-2008 7:31 PM

    How do I implement the 'Invite' feature (requestShareApp)?

    Hey,

     I have created a few apps now, but

    1. I cannot / don't know how to invite my friends (except post a bulletin and tell them to see my app)

    2. App users cannot invite friends.

    I heard of an 'invite tab'. 

    My app usually looks like this. Canvas is an external iframe. Profile source has usually a few rotating pics linking to the app. Home source the same.

    Now how do I implement exactly that invite thing? I really have no idea. I have HTML basic knowledge only...

    Thanks in advance!!!!
    Bye 

    P.S. A step-by-step instruction would be great... 

  • 08-30-2008 4:28 AM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

     Please, I need this.......

    I can't find like a default code that I can copy-paste where it should be placed....... 

  • 09-07-2008 6:25 PM In reply to

    • Johnny
    • Not Ranked
    • Joined on 09-07-2008
    • Posts 1

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    My friends invite request just get thrown away before I have the chance to even look at them. I have no idea who is even requesting friends? I click on the request friends and it disapears! HELP...what do I do to make this stop and I can assume the choice of friends request?

  • 09-09-2008 6:35 PM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    message me tomarrow or now and ill give you the script ... i'm a little to busy right now to answer you but ill get to you tomarrow if you want .... 

  • 09-13-2008 7:01 AM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    • <script>
          function DoLoad()
          {
           alert("DoLoad has occurred");
          }
    •     gadgets.util.registerOnLoadHandler(DoLoad);
          </script>
    • <div align="left" style="position:absolute; top: 100px; left: 630px; background-color: #ccc; border: 4px solid #000; padding: 2px; width: 300px; display: inline;"><font face="comic sans ms">Invite Friends To this app...
      <div id="picker" style="width: 200px; height: 30px;"></div></font>
      </div>
    • <center><script>
    • MyOpenSpace.DefaultPageSize = 100;
    • 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 the [app]!.. Install Now");
    •      infectedName = person.getField(opensocial.Person.Field.NAME);
    •     opensocial.requestShareApp(person.getField(opensocial.Person.Field.ID), message, function(){
                 alert("You've Infected" + infectedName + "with Insult Generator");
            }
           );
      }
    • </script></center>

    You can also use [recipient] in the message part for the user they sent it to...  myspace's friend picker is used to get the first 100 friends of the user to pick for the app invite ... Friend picker doesnt support more than 100 friends you there is no point in changing it.... the div i put it in is for my app i just cut it right out... There are more friend picker features that can use just search it in the search. Let me know if you need anything elts im not to busy now so ill be happy to help.

  • 09-13-2008 10:20 AM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    Thanks a lot. Just tell me, where do you have to put that code? In Canas, Profile or Home page? 

  • 10-01-2008 6:08 AM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    Cool code, is it just able to invite one at a time or can it have multiple tick boxes?

    I'm new to this (come over from Facebook) and I'm not too hot on java script so I may have implemented it wrong.

    Top work, thanks.

  • 11-11-2008 2:02 AM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

    How how I can use this code in "External Iframe" app?

  • 12-04-2008 3:01 PM In reply to

    Re: How do I implement the 'Invite' feature (requestShareApp)?

     if you still have q'sjust messageme

Page 1 of 1 (9 items)