I was reading a blogger blog today and saw that they had a really neat button labeled “Add me as a MySpace friend!” and when I clicked on it, it took me directly to the ‘confirm you really want to be friends’ page, rather than the more common, but less useful, link to my profile. I’d love to have more MySpace friends, so if you can tell me how to make this sort of button, it’d be most appreciated!!
Hmmm…. you’re right, I’ve seen these sort of buttons too, I just never really thought about how they’d be accomplishing this bit of MySpace trickery. Fortunately, it’s not hard to figure out…
Go to your own MySpace profile by logging in, then clicking on “View My Profile” just below your picture:
Now that you’re viewing your profile as others see it, notice that right under your picture in this view is a link to “Add to Friends”. Here’s an example of this set of choices from my friend Cathie’s profile:
Here’s the magic: right-click on that link on your profile and choose “Copy Link” from the pop-up menu. Now, in your copy and paste buffer you have something like:
(I’ve broken this into two lines for formatting purposes only)
Turns out that if you simply eliminate the last name=value field, the “MyToken” value, you have the URL needed for others to add you as a friend. Try it, click on this:
Now, let’s do a bit of a bonus step here! If you want to make this look like a standard HTML form button, you can unwrap the URL and create a succinct form:
<input type=”hidden” name=”fuseaction” value=”invite.addfriend_verify” />
<input type=”hidden” name=”friendID” value=”65108791″ />
<input type=”submit” value=”Add Me as a Friend!” />
Here’s how it’d look:
Cool, eh? Of course you can also just create a suitable graphic and use that as a button too, but that’s just a simple matter of graphic work! 🙂
Anyway, I hope that helps you create a similar link of your own. And while you’re experimenting with the steps on this page, don’t hesitate to actually add me as a MySpace friend too just as a test!