title: How to create and use self hosted objects to share custom stories in Android?
body: <p>I am developing a game app. And I am sharing facebook custom stories in my app.I have created a self hosted object(html page).</p>
  
  <p>I want to use that same self hosted object in  android,ios and Facebook canvas app.
  I have already done custom story sharing without using self hosted object for android app and below is my code for the same </p>
  
  <pre><code>OpenGraphObject objProperty = OpenGraphObject.Factory.createForPost("namespace:level"); 
  
  objProperty.setProperty("title","Title");
  objProperty.setProperty("image","http://www.example.com/jokedemo/image/wrong.jpg");
  objProperty.setProperty("url", "http://www.example.com");       
  objProperty.setProperty("description", "Can you beat me?");
  
  OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class);
  action.setProperty("level", objProperty);  
  FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(FBActivity.this, action,"namespace:unlock", "level").build();
  </code></pre>
  
  <p>where <code>unlock</code> is my action and <code>level</code> is my object.</p>
  
  <p>But I want it to do using self hosted object that I have created so that I can use same object for all platforms (Android, IOS , Web).</p>
  
  <p>In documentation it is mentioned that Self-Hosted Objects are more useful for multi platform app than using Object api.
  I followed this <a href="https://developers.facebook.com/docs/opengraph/using-objects/#selfhosted" rel="nofollow">https://developers.facebook.com/docs/opengraph/using-objects/#selfhosted</a> document but couldn't found anywhere there how to use it on Android. </p>
  
  <p>My code for creating an self hosted object (html page)</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;
  &lt;meta property="fb:app_id"          content="*************" /&gt; 
  &lt;meta property="og:type"            content="namespace:level" /&gt; 
  &lt;meta property="og:title"           content="Title" /&gt; 
  &lt;meta property="og:url"               content="https://example.com/namespace/level.html" /&gt; 
  &lt;meta property="og:description"     content="Can you beat me?" /&gt; 
  &lt;meta property="og:image"           content="https://example.com/namespace/image/abc.png" /&gt; 
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I want to use self hosted object in my Android what will be the changes in my working code or I have to do it in another way ?</p>
  
  <p>Any suggestion will be highly appreciated, Thank you in advance.</p>