Facebook open graph - Get friends "User-owned objects" -


i in progress of writing ios app using fb sdk 3.5.

i have created app can create "user owned object" using following code:

    nsmutabledictionary<fbopengraphobject> *object = [fbgraphobject opengraphobjectforpost];     object.provisionedforpost = yes;             object[@"type"] = @"fbltest:highscore";     object[@"title"] = @"new high score";     object[@"privacy"] = @"everyone";     object[@"data"][@"leaderboard"] = @"0";     object[@"data"][@"score"] = @"266";      [fbrequestconnection startforpostopengraphobject:object                                    completionhandler:^(fbrequestconnection *connection, id result, nserror *error)      {         // stuff here      }]; 

i tested object in object debugger , seems in order. can retrieve list of user objects using following code:

    fbrequestconnection* connection = [[fbrequestconnection alloc] init];         fbrequest* request = [[fbrequest alloc] initwithsession:fbsession.activesession graphpath:@"me/objects/fbltest:highscore"];          [connection addrequest:request              completionhandler:^(fbrequestconnection *connection, id result, nserror *error)             {                 // stuff here              }];     [connection start]; 

now retrieve list of users friends objects, gained list of friends , use following path retrieve list of there objects: "/objects/fbltest:highscore". returned nothing.

i tried querying facebook open graph following open graph paths no success: "me/friends/fbltest:highscore "me/friends/objects/fbltest:highscore" "me/friends?limit=10&objects/fbltest:highscore"

some notes: test environment using 3 test users friends each other. have disabled "sandbox environment" parameter facebook app.

any appreciated, if confirmation possible read friends self hosted objects.

i've been trying same thing (querying friends' user-owned objects) have managed indirect way. have expected /<userid>/objects/myapp:score work well, got no data back.

what work, though, querying friends' custom actions, rather objects. e.g.: /<userid>/myapp:actiontype.

from actions, can associated objects; ids, can query /<objectid>.

this seem roundabout way of doing things, means you'll need create associated action every score object create, if you're using object data storage. if don't want go in user's timeline can set no_feed_story property hide it. if user explicitly wants share score maybe have extra, "normal" action type? (i think multiple actions on object fine long one's visible).

there seems implicit og.posts action gets created whenever create user-owned object, query too, have filter "posts" object type.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -