IOS Facebook SDK – Post Open Graph and show on Timeline without clicking Activity Log

I’ve moved this answer out of @isaacselement question.


Just add one more code to your FBOpenGraphAction Object:

id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject];
[action setObject: @"true" forKey: @"fb:explicitly_shared"];  // This is the key point!

And you should enable the ‘explicitly shared’ setting for the open graph action in the Facebook Developer App Dashboard in the website.

For more details, look at the Document about Explicit Sharing

Leave a Comment