Welcome Developers!

in

Welcome!

in

Help with "Post to Myspace"

Last post 02-23-2010 2:36 PM by Joel. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-24-2009 4:40 PM

    Help with "Post to Myspace"

    Hi All,

    Thanks in advance for your help on this issue.  

     Here is my issue:  I am writing a bit of code on an auto dealer's website called "Share with Friends.  The idea is that someone can click on a button on a vehicle's page, and will be able to post that vehicle on myspace.  You can see it here:

     http://audi.checkeredflag.com/new-inventory/vehicle-details.htm?vehicleId=70068d8a4046381e01c4a198d5d3cd68&useHistory=true

     I have used the default code from the "Post to Myspace" documentation, but I would like to be able to dynamically pull in the page's title, the main vehicle image, and the url to the page.  Facebook's share feature does it automatically, trying to get the myspace button to behave in a similar fashion. This bit of html ends up on the page for every vehicle, so filling out the parameters one at a time is out of the question.

    Here is my code so far... 

    <table width="620" height="90" border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
      <tr>
        <td height="26"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa64f3340463872015092c020bd5e3d.jpg" width="171" height="26" /></td>
      </tr>
      <tr>
        <td width="304" height="64"><script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa5a1f040463872015092c02ffbceb3.jpg" width="304" height="64" /></a></td>
        <td width="316" height="64"><form id="myspacepostto" method="post" action="http://www.myspace.com/index.cfm?fuseaction=postto"
    target="_blank">
    <input type="hidden" name="t" value="I am thinking of purchasing this car" />
    <input type="hidden" name="c" value="I am thinking of purchasing this car’" />
    <input type="hidden" name="u" value=" " />
    <input type="hidden" name="l" value=" " />
    <a href="#" onclick="document.getElementById('myspacepostto').submit();return false;"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa6137b40463872015092c0ac1a24b3.jpg" width="316" height="64" /></a>
    </form></td>
      </tr>
    </table>

    Any ideas?  Please keep in mind that I am a n00b, so please keep the instructions/advice as simple as possible.  Thanks for the help.

    Filed under: ,
  • 02-27-2009 2:32 PM In reply to

    • Jalen
    • Top 500 Contributor
    • Joined on 03-25-2008
    • Posts 18

    Re: Help with "Post to Myspace"

    This is NOT OpenSocail PostTo. This is WWW PostTo. You can try the youtube link and take a look at the help doc. Steps:1.       Go to youtube.2.       Click any video3.       Click the Share -> MySpace.4.       There is a popup and click the “copy the code”. You should be able to see the help doc link on the code page too: Here is the direct link: http://x.myspace.com/download/posttomyspacedeveloperdocumentation001.pdfWWW PostTo only support three targets at this moment:1 Blog2 Bulletin3 About Me

     

  • 02-22-2010 11:53 PM In reply to

    • Le Duc
    • Not Ranked
    • Joined on 11-13-2009
    • Posts 3

    Re: Help with "Post to Myspace"

    Hi, now Myspace update Post To stream and this function not work correctly. Could you fix it ? as c param now don't accept HTML tag anymore I guess ! Regards
    Filed under:
  • 02-23-2010 2:36 PM In reply to

    Re: Help with "Post to Myspace"

     hi,

    The new functionality is called "Share on Myspace" now, and can be found here:

     http://wiki.developer.myspace.com/index.php?title=Category:Share_on_MySpace

     

    thanks,

    Joel

Page 1 of 1 (4 items)