title: Facebook OpenGraph Stories in Android Facebook SDK 4.0
body: <p>Following this <a href="https://developers.facebook.com/docs/sharing/opengraph/android" rel="nofollow noreferrer">tutorial</a>, I'm trying to implement OpenGraph stories in Android application, with Facebook SDK 4.0.<br>
  I have read a lot of Facebook documentation, and understand (in theory) how OpenGraph stories should work. But the main problem, that I can't implement it in SDK 4.0, because all code samples in tutorials and documentation are referred to the old SDK's methods. And all my attempts to make it work (change Actions, Objects) have failed.</p>
  
  <p>Here's my code (according to the <a href="https://developers.facebook.com/docs/sharing/opengraph/android" rel="nofollow noreferrer">documentation</a>
  ):</p>
  
  <pre><code>// Create an object
  ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
          .putString("og:type", "books.book")
          .putString("og:title", "A Game of Thrones")
          .putString("og:description", "In the frozen wastes to the north of Winterfell, sinister and supernatural forces are mustering.")
          .putString("books:isbn", "0-553-57340-3")
          .build();
  
  // Create an action
  ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
          .setActionType("books.reads")
          .putObject("books:book", object)
          .build();
  
  // Create the content
  ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
          .setPreviewPropertyName("books:book")
          .setAction(action)
          .build();
  
  ShareButton shareButton = (ShareButton)findViewById(R.id.shareButton);
  shareButton.setShareContent(content);
  shareButton.registerCallback(callbackManager, new FacebookCallback&lt;Sharer.Result&gt;() {
  
      @Override
      public void onSuccess(Result result) {
          Log.i(TAG, "SHARING SUCCESS!");
      }
  
      @Override
      public void onError(FacebookException error) {
          Log.e(TAG, "SHARING ERROR! - " + error.getMessage());
      }
  
      @Override
      public void onCancel() {
          Log.w(TAG, "SHARING CANCEL!");
      }
  });
  </code></pre>
  
  <p>And what I'm getting (with all my attempts):
  <img src="https://i.stack.imgur.com/2Qj7c.png" alt="enter image description here"></p>
  
  <blockquote>
    <p>Action Requires At Least One Reference: The action you're trying to
    publish is invalid because it does not specify any reference objects.
    At least one of the following properties must be specified: book.</p>
  </blockquote>
  
  <p>Please, can you explain, how to correct use OpenGraph in FB SDK 4.0, and correct use <code>Objects</code> with <code>Actions</code> using SDK 4.0 methods.</p>