title: Post image to Facebook in JSON format in Android
body: <p>I want to post image to the Facebook in which I am having my JSON string,I have included static image in the string, and it works fine, if I want to add dynamic image what can I do for if?</p>
  
  <p>Here is my code:</p>
  
  <pre><code> parameters.putString(
      "attachment",
    "{\"name\":\""
    + b.getString("title")
    + "\",\"href\":\""
    + b.getString("cmpWeb")
    + "\",\"description\":\""
    + desc
   + "\",\"media\":[{\"type\":\"image\",\"src\":\"http://184.106.227.45/quaddeals/img/small_thumb/Deal/692.e6b86fa39f3ba25e29f0351140b57a94.jpg\",\"href\":\"http://alumni.brown.edu/\"}]}");
  </code></pre>
  
  <p>This value is <a href="http://184.106.227.45/quaddeals/img/small_thumb/Deal/692.e6b86fa39f3ba25e29f0351140b57a94.jpg" rel="nofollow noreferrer">http://184.106.227.45/quaddeals/img/small_thumb/Deal/692.e6b86fa39f3ba25e29f0351140b57a94.jpg</a>\" static value I want to include dynamic content that I got from previous page by using intent,say(b.getString("url")).</p>
  
  <p>Also I want to show the web link if user click the link it should shows the Web View is also static "<a href="http://alumni.brown.edu" rel="nofollow noreferrer">http://alumni.brown.edu</a>" i want to include dynamic data.</p>