Get-FBFriend vs. Get-FBFriends

Aug 16, 2011 at 5:39 AM

Stefan, thank you for your comment. This is actually something I struggled with and call out in the inline comments. I know that the strictly correct noun usage is always the singular. The problem is that there is no singular form of the actual command. Unlike "Get-Service" or "Get-ChildItem", there is no way to get a single friend, only the complete list. It wouldn't make any sense to offer this -- if you already know the friend's ID, you can just use Get-FBObjectData. I'm open to suggestions, whether it's to use the singluar anyhow, use "Get-FBFriendList", or whatever. The same goes for "Get-FBEvents".

Please let me know what you think, and how the rest of your testing works out. What I'm most interested to hear are real-life scenarios for using the module.

Thanks, Jon


From: Stefan Stranger

Hi Jon,

Liking what you have done in the Facebook Module and testing it right now. Only thing I noticed when started to work with the module is that you used plural for some of the nouns used in your commands.

Example: get-fbfriends instead of get-fbfriend

get-command -module facebook | where {$_.Name -like "*s"}


Aug 25, 2011 at 1:12 PM

I would vote for either "Get-FBFriendList" or "Get-FBFriendCollection".