Myspace XML-RPC

Discussion corner for Developers of Serendipity.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

There's a syntax error in the file. Go to that line (it looks like this:)

Code: Select all

 echo htmlentities($result); . "\n\n<hr /><br />\n\n";
and remove the first semicolon so it looks like this:

Code: Select all

 echo htmlentities($result) . "\n\n<hr /><br />\n\n";
.

Then try again. Sorry for the inconvenience; this sort of thing happens to the best of us.
Judebert
---
Website | Wishlist | PayPal
Guest

Post by Guest »

I rolled back the ljupdate.php file to the last one--that un-broke the journal. I looked in the plugins configuration and noticed that there was an update for lj/myspace update. So I installed the update. Now there is some activity, but now actual post in myspace. LJ still works great.

Here's the output:
(REMOVED BY ADMIN)

I've tried listing variations in the server name field on the configuration, but, from my limited understanding of php, it looks like the server and paramaters are defined in the script and ignore that field altoghether.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you look at your output HTML code, you'll see that MySpace has responded to your URL call with a "Unknown error" page.

That means, the way the script you posted opens the URL has either changed or is buggy.

Since I don't know or use MySpace, I do not know which URLs need to be called.

Maybe you have the time to properly get the correct URLs and which POST Values to submit -- or maybe you can find a working script snippet. The two snippets you pointed to actually contain nearly the same code.

You should be able to open the URLs that the plugin outputs to you in your browser if you create a sample URL form like this:

Code: Select all

<form action="http://blog.myspace.com/index.cfm?fuseaction=login.process" method="post">
<input type="hidden" name="email" value="YOUR_EMAIL" />
<input type="hidden" name="password" value="YOUR_PASSWORD" />
<input type="hidden" name="Remember" value="0" />
<input type="submit" value="GO!" />
</form>
(Replace YOUR_EMAIL and YOUR_PASSWORD with your password. Pay attention you don't publish it here in the forums the next time *g*)

With that HTML you should see the same error page that your blog is seeing. Maybe your password is wrong? Or maybe MySpace does no longer allow remote calling their services?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Pay attention you don't publish it here in the forums the next time *g*
Woops, a little too trusting. Didn't intend to publish that info, thanks for removing it.

I'll play arround with the calls and pound Google and try figure them out. I'll share what i find here.

I just want to say thanks for all the help. I'm sure you're busy and this is probably an annoyance. I realy appreciate it. Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You're very welcome. I'm heartly sorry to not yet have helped in solving the issue for you - but this is pretty hard since I really have no knowledge about MySpace and am too short on time to get involved in it.

Of course, if you find any help or clues to solve it, feel free to post here so that we can work it out. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

the curl login works fine. Curl then tries to do the posting of info to the blog, but, myspace first redirects you to a advertisement page--not the primary page.

It seems that getting arround the redirect, or using curl to go through the redirect would work. No luck on my part for getting arround the redirect yet. I'll keep trying and post again if I figure it out.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you tell how the redirect is performed? Via a HTTP Redirect, or via a META REFRESH redirect?

The first one would easily be solvable, the second one poses a problem and more parsing overhead.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

I can't tell. I've dug through all the javascripts on the login page to see if they point anywhere else, but could find no url. I've looked through the source of each login/home/blog page without luck. There is also something weird, I only occasionally get the ad screen. This may be worth giving up on.
Trench
Regular
Posts: 85
Joined: Fri Nov 05, 2004 11:38 am

Post by Trench »

Just curious if anyone has had success with using the MySpace cross posting part of the plugin?
FlashAM
Posts: 2
Joined: Thu Apr 13, 2006 10:07 pm

Post by FlashAM »

I haven't had any success with this either. Anyone have any helpful hints?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I think MySpace has closed down their option of the remote posting. It doesn't seem as if they want remote posting to work.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
FlashAM
Posts: 2
Joined: Thu Apr 13, 2006 10:07 pm

Post by FlashAM »

I was thinking along the same lines, but I was still hopeful!

Thanks for the reply.
brentil
Regular
Posts: 9
Joined: Fri Oct 27, 2006 10:19 pm

Post by brentil »

garvinhicking wrote:I think MySpace has closed down their option of the remote posting. It doesn't seem as if they want remote posting to work.

Regards,
Garvin
I've spent the last couple of hours trying to get the MySpace posting ability of the LJ/MySpace plugin to work with no success. It's returning data for my particular blog but no entries are going in.

If this is true maybe the plug should be renamed to remove the MySpace reference since until I stumbled across this post I though I was just doing it completely wrong.
Post Reply