title: Android how to share data with Facebook Open Graph in new sdk 3.0?
body: <p>Right now I have setup my Open Graph Application on Facebook. It has been approved. I am trying to submit my "objects" via the bundle params but I am curious how I setup a bundle param object like the following. </p>
  
  <p>EDIT: </p>
  
  <p>Am creating object and action like this </p>
  
  <p><code>Objects</code> and <code>action</code> 
   this is code for sharing </p>
  
  <pre><code>  void publishToWall() {        
          Session session = Session.getActiveSession();
          if (session != null) {
              Log.i("session ==&gt;", "" +session);
              // Check for publish permissions    
              List&lt;String&gt; permissions = session.getPermissions();
              if (!isSubsetOf(PERMISSIONS, permissions)) {
                  Log.i("session permissions ==&gt;", "publishToWall");
                  pendingPublishReauthorization = true;
                  Session.NewPermissionsRequest newPermissionsRequest = new Session 
                          .NewPermissionsRequest(this, PERMISSIONS);
                  session.requestNewPublishPermissions(newPermissionsRequest);
                  return;
              }   
  
              try {                   
                  RequestBatch requestBatch = new RequestBatch();                     
                  Log.i("session requestBatch ==&gt;", "requestBatch");
  
                  JSONObject tropy = new JSONObject();
  
                  tropy.put("type", "thebigtoss:tropy");
                  tropy.put("title", "A Game of Thrones");
                  tropy.put("url","http://www.thebigtoss.com/assets/app-icon.png");
                  tropy.put("description", "supernatural forces are mustering.");
  
                  // Set up object request parameters
                  Bundle objectParams = new Bundle();
                  objectParams.putString("object", tropy.toString());
                  // Set up the object request callback
                  Request.Callback objectCallback = new Request.Callback() {
                      @Override
                      public void onCompleted(Response response) {
                          Log.i("objectParams onCompleted ==&gt;", "onCompleted");
                          // Log any response error
                          FacebookRequestError error = response.getError();
                          if (error != null) {                     
                              Log.i(TAG, "objectParams =&gt;" +error.getErrorMessage());
                          }
                      }
                  };                            
                  // Create the request for object creation
                  Request objectRequest = new Request(session, 
                          "me/objects/thebigtoss:trophy", objectParams, HttpMethod.POST, objectCallback);
  
                  // Set the batch name so you can refer to the result
                  // in the follow-on publish action request
              //  objectRequest.setBatchEntryName("objectCreate");      
  
                  // Add the request to the batch
                  requestBatch.add(objectRequest);
  
                  Bundle actionParams = new Bundle();
                  // Refer to the "id" in the result from the previous batch request
                  actionParams.putString("trophy", "Action parametery");
                  // Turn on the explicit share flag
                  actionParams.putString("fb:explicitly_shared", "true");
  
                  // Set up the action request callback
                  Request.Callback actionCallback = new Request.Callback() {
                      @Override
                      public void onCompleted(Response response) {
                          // dismissProgressDialog();
                          FacebookRequestError error = response.getError();
                          if (error != null) {
                              Toast.makeText(MainActivity.this.getApplicationContext(),error.getErrorMessage(),Toast.LENGTH_LONG).show();
                          } else {
                              String actionId = null;
                              try {
                                  JSONObject graphResponse = response.getGraphObject().getInnerJSONObject();
                                  actionId = graphResponse.getString("id");
                              } catch (JSONException e) {
                                  Log.i(TAG, "JSON error "+ e.getMessage());
                              }
                              Toast.makeText(MainActivity.this.getApplicationContext(),actionId, Toast.LENGTH_LONG).show();
                          }
                      }
                  };                                
                  // Create the publish action request
                  Request actionRequest = new Request(session,
                          "me/thebigtoss:win", actionParams, HttpMethod.POST, actionCallback);                                
                  // Add the request to the batch
                  requestBatch.add(actionRequest);                                
                  // Execute the batch request
                  requestBatch.executeAsync();
  
              } catch (JSONException e) {
                  //Auto-generated catch block
                  e.printStackTrace();
              }               
          }               
      }        
  </code></pre>
  
  <p>But am not getting sharing data in my facebook</p>
  
  <p>this error am getting <code>12-10 15:26:25.710: I/MainActivity(27667): objectParams =&gt;(#100) conflicting og:type found in path (thebigtoss:trophy) and 'properties' (thebigtoss:tropy)
  </code></p>
  
  <p>in this code line  of <code>if (error != null) {<br>
                                  Log.i(TAG, "objectParams =&gt;" +error.getErrorMessage());</code>
                              }</p>
  
  <pre><code>Request.Callback objectCallback = new Request.Callback() {
                      @Override
                      public void onCompleted(Response response) {
                          Log.i("objectParams onCompleted ==&gt;", "onCompleted");
                          // Log any response error
                          FacebookRequestError error = response.getError();
                          if (error != null) {                     
                              Log.i(TAG, "objectParams =&gt;" +error.getErrorMessage());
                          }
                      }
                  }; 
  </code></pre>
  
  <p>Any one have idea how to share useing  this code in facebook opengraph.</p>