MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

post to

Last post 06-20-2008 1:39 PM by Chris Cole. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 05-07-2008 10:11 AM

    post to

     when i put the post to code on my canvas how do they pick which person they want to post to also how do i take off the option like message so they can not send messages

  • 05-07-2008 11:17 AM In reply to

    Re: post to

     Look at the FriendPicker exposed in the MyOpenSocial.Widgets library.  You can see it in use in this sample app:

    http://www.myspace.com/myopensapcewidgetsamples#367956440


    Filed under: ,
  • 05-07-2008 1:01 PM In reply to

    Re: post to

    It say's When instantiating a FriendPicker, you should register the call to run with the gadget load handler. How do i do that andthe code where do i put it in my code.

  • 05-07-2008 2:12 PM In reply to

    Re: post to

     View source on the widget example app should show you.  Here is the specific call.  This causes the function to be attached to the body load event.

     

    gadgets.util.registerOnLoadHandler(function(){
    window.friendPicker = new MyOpenSpace.Widgets.FriendPicker(
    {
    element: "pickerDiv01",
    buildSelectedUI: true
    }); );

    The only constraint is that the div element referenced in the constructor (here "pickerDiv01") should already be added to the DOM.  The short answer is put this call at the bottom of your code.  IE has shown some errors with this approach that usually go away if you reload the page (IE gets the Widget js code in its cache).  When we get a solid fix to this the sample app will be updated to reflect it.

  • 05-08-2008 9:36 AM In reply to

    Re: post to

    i dont realy understand but where in the post to code do i put the selct code that you sent me to 

  • 05-11-2008 8:30 AM In reply to

    Re: post to

     Need help. How do you get pick friends working in an Iframe app?

  • 06-04-2008 11:56 AM In reply to

    Re: post to

    Hi Guys, Add this application http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=105386 See this article http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/rss.aspx?Tags=Send+Message&AndTags=1 I hope that would be enough Thanks Imran www.sheensol.com (can contact further here)

  • 06-20-2008 1:39 PM In reply to

    Re: post to

     We haven't released the IFrame support package yet, so you'd need to do some custom coding.  You could manually construct the collection of friends (person objects) using the REST API and then fake out the friend picker by forcing it to use that collection, but it won't be pretty.

     I'll put IFrame support on the backlog for this widget.

Page 1 of 1 (8 items)