Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook iOS SDK - creating user owned objects and publishing an open graph story without a backend server
    primarykey
    data
    text
    <p>My goal is to achieve something along the lines of this without implementing a backend web server:</p> <p><img src="https://i.stack.imgur.com/u4MRh.png" alt="http://i.stack.imgur.com/QjA21.png"></p> <p>currently, I am using this code:</p> <pre><code>id&lt;FBOpenGraphAction&gt; _action = (id&lt;FBOpenGraphAction&gt;)[FBGraphObject graphObject]; _action[@"book"] = @{ @"type":@"books.book", @"fbsdk:create_object": @YES, @"title":@"test title 1", @"url":@"http://test-test.test", @"image":@"http://www.m5zn.com/uploads/2010/7/15/photo/071510030742woekhs48rdt1ifcwp.jpg", @"description": @"development in progress - test description", @"data": @{@"isbn":@"0-316-31696-2"} }; [FBSettings enableBetaFeature:FBBetaFeaturesOpenGraphShareDialog]; [FBDialogs presentShareDialogWithOpenGraphAction:_action actionType:@"books.reads" previewPropertyName:@"book" handler:^(FBAppCall *call, NSDictionary *results, NSError *error) { if(error) { NSLog(@"Error: %@", error.description); } else { NSLog(@"Success!"); } }]; </code></pre> <p>Nothing is being logged when that code is run. Additionally, here is the AppDelegate fragment:</p> <pre><code>- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { // attempt to extract a token from the url return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication withSession:FBSession.activeSession fallbackHandler:^(FBAppCall *call) { DLog(@"in fallback handler"); }]; // return [FBSession.activeSession handleOpenURL:url]; } </code></pre> <p>I attempted to follow this example: <a href="https://www.youtube.com/watch?v=mLuaUtbGvEM#at=322" rel="nofollow noreferrer">https://www.youtube.com/watch?v=mLuaUtbGvEM#at=322</a> Found at the end of this article: <a href="https://developers.facebook.com/docs/opengraph/using-object-api/" rel="nofollow noreferrer">https://developers.facebook.com/docs/opengraph/using-object-api/</a></p> <p>Yet the share dialogue does not come up, and nothing is logged in the console. What went wrong? Are there some dependencies that I'm missing? Is my view controller not complying with certain protocols? Are certain handlers not invoked? W</p> <p>What is additionally necessary to get this to work?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload