I need to post an action
I have been successful in posting the like link from the graphical API. for example, 'abc loves www.abc.com'
now I am stuck in a βnice user objectβ, for example, βabc loves a toy1β and also get the total number of likes.
This is an example of code that does not work.
NSDictionary *properties = @{ @"og:type": @"toy", @"og:title": @"toy1", @"og:description": @"This is a sample course."}; FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:properties]; FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init]; action.actionType = @"og.likes"; [action setObject:object forKey:@"toy"]; FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init]; content.action = action; content.previewPropertyName = @"toy"; FBSDKShareAPI *shareAPI = [[FBSDKShareAPI alloc] init];
Edit: my code works by modifying
toy
to
appnamespace:toy
and
[action setObject:object forKey:@"toy"];
now I want to get the total number of likes on this user object
source share