Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)createOGObjectForImage:(NSURL *)imageURL
- {
- NSMutableDictionary<FBGraphObject> *object =
- [FBGraphObject openGraphObjectForPostWithType:@"ogminigame:mini_game"
- title:@"Mini Game"
- image:@"https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png"
- url:imageURL
- description:@""];
- [FBRequestConnection startForPostWithGraphPath:@"me"
- graphObject:object
- completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
- if(!error) {
- NSLog(@"Result: %@", [result description]);
- [self createOGActionWithResult:result];
- } else {
- NSLog(@"Error posting the Open Graph object to the Object API: %@", error);
- [self sharePhotoWithShareDialog:self openGraphAction:nil];
- }
- }];
- }
- "FACEBOOK_NON_JSON_RESULT" = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement