jonniejoejonson Posted December 16, 2007 Share Posted December 16, 2007 If you add your myspace url on slide.com they grab all your images from your myspace... does anyone know how they do this? and cvan it be done using php. They also offer the same service for facebook, but you have to addlogin details I assume this is just an aplication you can create using facebook? Anyway thanks to any responders. Quote Link to comment Share on other sites More sharing options...
acidglitter Posted December 16, 2007 Share Posted December 16, 2007 i actually had a topic about this yesterday.. this is the code i finally got to that can get the default picture off of someones myspace page <?php $ch = curl_init() or die(curl_error()); curl_setopt($ch, CURLOPT_URL,"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$friendid"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data1=curl_exec($ch) or die(curl_error()); $okay="/<a type.*>/"; if(preg_match($okay, $data1, $matches)){ echo $matches[0]; } echo curl_error($ch); curl_close($ch); ?> getting all of the pictures in someones gallery would probably be similar to that but harder.. it might use arrays too.. Quote Link to comment Share on other sites More sharing options...
jonniejoejonson Posted December 16, 2007 Author Share Posted December 16, 2007 Okay I'll take a look at that... thanks alot. I don't suppose you have any idea on how to get all the images, as to grab someones images (I think) would require for you to be logged in, but slide.com seem to manage it. Also do you have any ideas on how to do this for facebook? kind regards J Quote Link to comment Share on other sites More sharing options...
acidglitter Posted December 16, 2007 Share Posted December 16, 2007 i don't know about facebook, i'm never on there.. i can't remember what it is, maybe curl? where you can put a username and password into it and then you could go to the images page.. Quote Link to comment Share on other sites More sharing options...
jonniejoejonson Posted December 16, 2007 Author Share Posted December 16, 2007 It must be possible to do without the password as you can do it using just the url on slide.com,... eg myspace.com/steve ...and it grabs all the images on their picture page.... anyway if you have any more ideas please let us know... thanks for your help J. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.