I'm using the following code to publish an action onto the Open Graph from my iPhone application:
-(void) postEarnedBadgeToFacebook:(id)delegate:(Badge*)theBadge
{
NSLog(@"Posting badge [%@] to facebook", theBadge.badgeTitle);
NSMutableDictionary * params = [[NSMutableDictionary alloc]init];
[params setValue:[theBadge getFullyQualifiedFacebookWebPageUrl] forKey:@"badge"];
[params setValue:[theBadge getFullyQualifiedFacebookWebImageUrl] forKey:@"image"];
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
NSLog(@"Posting graph request for me/myapp:earn");
[[appDelegate facebook] requestWithGraphPath:@"me/myapp:earn" andParams:params andHttpMethod:@"POST" andDelegate:self];
}
This works perfectly fine, and I'm able to see invocations of the above in the activity log of my facebook profile like so :
Question : Although my apps' actions show in the activity feed, is there a way I can automatically have them show on the users timeline? At the moment, the user would manually have to click on the option circled in green, and select "show on timeline"