Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook SDK3.0 how to use WebDialog without picture
    primarykey
    data
    text
    <p>I referenced the sample code from Facebook SDK3.0, using WebDialog to post story on my wall.</p> <p>The sample code demonstrate the Bundle object use to construct WebDialog.FeedDialogBuilder</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "Facebook SDK for Android"); params.putString("caption", "Build great social apps and get more installs."); params.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps."); params.putString("link", "https://developers.facebook.com/android"); params.putString("picture", "https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png"); </code></pre> <p>so i change some words to test in my project:</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "Push test"); params.putString("caption", "hello"); params.putString("description", "hello"); params.putString("link", ""); params.putString("picture", ""); </code></pre> <p>but the result of "name", "caption", "description" on WebDialog.FeedDialogBuilder are disappeared</p> <p>then i found the value of <code>params.putString("picture", "");</code> </p> <p>with invalid URL or empty String, the WebDialog.FeedDialogBuilder will not work.</p> <p>with empty String:</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "Test"); params.putString("caption", "hello"); params.putString("description", "hello"); params.putString("link", ""); params.putString("picture", ""); </code></pre> <p><img src="https://i.stack.imgur.com/HVuf7.png" alt="enter image description here"></p> <p>with invalid url:</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "Test"); params.putString("caption", "hello"); params.putString("description", "hello"); params.putString("link", ""); params.putString("picture", "null"); </code></pre> <p><img src="https://i.stack.imgur.com/Ai2WM.png" alt="enter image description here"></p> <p>with any valid url:</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "test"); params.putString("caption", "hello"); params.putString("description", "hello"); params.putString("link", ""); params.putString("picture", "http://www.technobuffalo.com/wp-content/uploads/2012/12/Google-Apps.jpeg"); </code></pre> <p><img src="https://i.stack.imgur.com/olYIx.png" alt="enter image description here"></p> <p>Use just three parameters:</p> <pre><code>Bundle params = new Bundle(); params.putString("name", "test"); params.putString("caption", "hello"); params.putString("description", "hello"); </code></pre> <p><img src="https://i.stack.imgur.com/QYmeQ.png" alt="enter image description here"></p> <p>so, how should i pass the correct value to <code>params.putString("picture", "");</code> </p> <p>can make it work without picture?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload