Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've ran into the same issue. You first need to post the object, then get its ID, and provide the object ID instead of the object itself:</p> <pre><code>NSMutableDictionary&lt;FBOpenGraphObject&gt; *object = [...]; [FBRequestConnection startForPostOpenGraphObject:object completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { if(result != nil){ NSString* resultID = [result objectForKey:@"id"]; [FBRequestConnection startForPostWithGraphPath:@"me/objects/sotd_facebook:new_zombie" graphObject:resultID //... </code></pre> <p>The object is first posted as an object to Facebook, then you can use the action (new_zombie) on the object. I'm also in the exact same situation (with July 2013 breaking changes enabled) trying to figure out to create all in one step on Facebook, but couldn't figure it out without using a seperate, self-hosted webserver. In my issue, I'm getting an error about the object being already posted and can't be posted again. If you don't have this issue, you can go on with this one now.</p> <p>It seems that the error itself is caused by the <code>fbsdk:create_object</code> key (and its value <code>1</code>) in the object dictionary. This key is automatically added by Facebook SDK into the object. When I removed this key explicitly before posting, it did not throw an exception on post, but my answer about posting the object still applies. Even if you remove that key, you'll be getting an <code>OAuthException</code> at the server side, telling that the object is not a "reference". I'd be really glad to be proven wrong about this, though.</p>
    singulars
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      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