title: Android Facebook-sdf Exception: Failed to generate preview for user
body: <p>i'm developing a simple android app and i want post a status in facebook using OpenGraphObject and OpenGraphAction.</p>
  
  <p>if i use new <code>FacebookDialog.ShareDialogBuilder(this)</code> i have no problem, but when i'm using  <code>FacebookDialog.OpenGraphActionDialogBuilder</code> i got the error:</p>
  
  <pre><code>01-09 15:56:29.594  11439-11439/simov.project2.yourcity E/Activity﹕ Error: com.facebook.FacebookException: Failed to generate preview for user.
  </code></pre>
  
  <p><strong>java</strong></p>
  
  <pre><code>public void test(int position){
  
      File f = (File)mImageAdapter.getItem(position);
      Bitmap myBitmap= BitmapFactory.decodeFile(f.getAbsolutePath());
      List&lt;Bitmap&gt; images = new ArrayList&lt;Bitmap&gt;();
      images.add(myBitmap);
      //Session session = Session.getActiveSession();
      //session.requestNewPublishPermissions(new Session.NewPermissionsRequest(this, PERMISSION));
  
      try {
          addresses = mGeocoder.getFromLocation(mItenerariumState.getCurrentLocation().getLatitude()
                  , mItenerariumState.getCurrentLocation().getLongitude()
                  , 1);
      } catch (IOException e) {
          e.printStackTrace();
      }
      OpenGraphObject location = OpenGraphObject.Factory.createForPost("yourcity:location");
      if(!addresses.isEmpty()){
  
          location.setProperty("title", addresses.get(0).getAddressLine(0));
      } else {
  
          location.setProperty("title", "Unknown place");
      }
      location.setProperty("Description", "I visited this place using YourCity App");
  
      OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class);
      action.setProperty("location", location);
  
  
    /*  Request request = Request.newPostOpenGraphActionRequest(Session.getActiveSession(), action, new Request.Callback() {
          @Override
          public void onCompleted(Response response) {
              //showPublishResult(getString(R.string.photo_post), response.getGraphObject(), response.getError());
          }
      });
  
      request.executeAsync();*/
      FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(this, action, "yourcity:visit","location")
              .setApplicationName("YourCity")
              //.setImageAttachmentsForAction(images, true)
              .build();
      uiHelper.trackPendingDialogCall(shareDialog.present());
  }
  </code></pre>
  
  <p>Important note, the shareDialog show in the screen by like one second and then disappears without any action</p>