I created an action that also publishes an object. I enabled publish_actions permissions. I can get my list of actions via: https://graph.facebook.com/me/myApp:myAction
but i can't get: https://graph.facebook.com/me/friends/myApp:myAction
Or do i need to just directly get a list of objects and somehow filter myself out? I actually can't figure out how to get the object list without calling it through the associated action. Is that just how it is?
WORKAROUND: First, I fql.query "select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1" and get back friends who have the app installed...
Second, I get back that query and use it to batch the following:
for (NSDictionary *d in friendsWithApp) {
NSString *jsonRequest = [NSString stringWithFormat:@"{ \"method\": \"GET\", \"relative_url\": \"%@/myApp:myAction/myObject\" }", [d objectForKey:@"uid"]];
jsonRequestsArray = [jsonRequestsArray stringByAppendingString:jsonRequest];
setCount++;
if (setCount!=[presets count]) {
jsonRequestsArray = [jsonRequestsArray stringByAppendingString:@", "];
}
}
jsonRequestsArray = [jsonRequestsArray stringByAppendingString:@" ]"];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:jsonRequestsArray forKey:@"batch"];
[facebook requestWithGraphPath:@"me" andParams:params andHttpMethod:@"POST" andDelegate:self];
Ugh. I also got a usable list with this fql.query:
"SELECT post_id, actor_id, attribution FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND app_id = MY_APP_ID"
But it doesn't return many items since it competes with the last 50 news items. Maybe it will be the way to go if the app is used enough, but it seems like use would drop off and then you couldn't get at the older posts easily.