generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

I need a web API for getting online friends

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jun 2015 09:16 AM
I need to be able to get ALL the online friends by userId (as opposed to getting a maxmimum of 50 online friends only if they're ingame)


Ideally I'd like for it to return online friends, but if they can return all friends with some way of viewing if they're online or not (so I can loop through) that would be great too. Also, it has to be usable, I don't want one that's like, locked up (rproxy doesn't seem to work for me)
Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
02 Jun 2015 10:24 AM
The following API gets all your best friends:

http://www.roblox.com/friends/json?userId=261&currentPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends

All you have to do, is edit the userId, to your ID, and the friendsType to "AllFriends".

WIKI: http://wiki.roblox.com/index.php?title=Web_APIs#Friendship_APIs

This gets your best friends and returns a JSON table of their basic information. It does however have an online status feature, but it is still hard to use:

{
"UserId": 261,
"TotalFriends": 15,
"CurrentPage": 0,
"PageSize": 20,
"TotalPages": 1,
"FriendsType": "BestFriends",
"Friends": [{
"UserId": 916,
"Username": "Matt Dusek",
"AvatarUri": "http://t7.rbxcdn.com/795ccf5d624d3a9c1a53eaa7d7ec09d4",
"AvatarFinal": true,
"IsBestFriend": true,
"OnlineStatus": {
"LocationOrLastSeen": "1/23/2015 7:00 PM",
"ImageUrl": "~/images/offline.png",
"AlternateText": "Matt Dusek is offline (last seen at 1/23/2015 7:00:04 PM."
},
"InvitationId": 0,
"FriendshipStatus": 4
}]
}
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jun 2015 10:27 AM
But you cannot use that with HttpService, I have tried...
Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
02 Jun 2015 10:34 AM
Oh lol!

I see what you mean. I have gone through the same problem as you have. But luckily, there's a way to bypass this! I use this method all the time! At first, it was hard to understand, but I understood it myself.

Read this article: http://roproxy[DOT]tk/

All you have to do, is replace "roblox.com" with "rproxy[DOT]pw" in the URL.

ROBLOX does not allow roblox.com, but if you use rproxy.pw, you can bypass this and effectively use roblox apis. NOTE: Take out the "www."

So, something like this:

http://www.roblox.com/friends/json?userId=261&currentPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends

Would be:

http://rproxy[DOT]pw/friends/json?userId=261&currentPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends

Sorry, has to use [DOT] as ROBLOX does not allow other URls.

BTW, I got roproxy here: http://wiki.roblox.com/index.php?title=User-created_web_APIs
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jun 2015 10:36 AM
I know about roproxy...


"Also, it has to be usable, I don't want one that's like, locked up (rproxy doesn't seem to work for me)"
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jun 2015 10:50 AM
It seems to be working...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image