Facebook Friends interface not returning Friend ID

Hi,

While implementing the onlinefriendsfacebook interface i noticed that the function

void FOnlineFriendsFacebook::ReadFriendsUsingGraphPath(int32 LocalUserNum, const FString& ListName)

is not returning any id’s, due to wrong key while iterating over the friend results. Specifically the line 275 in OnlineFriendsFacebook.cpp it should be const FString Id([user objectForKey : @“id”]); and NOT const FString Id([user objectForKey : @“ObjectID”]);

By changing this it will now return the correct friend ID. I did some digging around at Facebook developer portal and haven’t seen any reference to ObjectID when fetching friends. they have been using the key “id” since api v 2.0.

I know this is easy to correct if you are using the source code engine. But for people that are on the precompiled version this might be a problem.

Best regards.

Hey MaximFrisk-

Since you were able to find the cause of the issue, it would be best if you could enter a pull request (https://github.com/EpicGames/UnrealEngine/compare?expand=1) to have your fix suggestion reviewed for inclusion into the engine along with having your name added as an engine contributor

Cheers