x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 11 '16 at 10:44 AM in Bug Reports

avatar image

MaximFrisk
36 1 3 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

Doug Wilson

more ▼

answered Jun 13 '16 at 02:59 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question