Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Social Plugin in to post comment in android
    primarykey
    data
    text
    <p>I am trying to use Facebook social plugin in my native android app.</p> <p>Till now i have done these steps.</p> <ul> <li>get app id by creating app i Facebook developer console.</li> <li>get code from <a href="http://developers.facebook.com/docs/reference/plugins/comments/" rel="nofollow">http://developers.facebook.com/docs/reference/plugins/comments/</a></li> <li>After getting code just for testing purpose i make a webpage and load this webpage in web-view in android.</li> <li>all comments are showing in the web-view. </li> <li>But there is a button that says login before post a comment.. I have access token because my app requires SSO using Facebook sdk.</li> </ul> <p>So is there any way so that i can use the access token to post comment in the Facebook social plugin (that is loaded in web-view) that is generated during login from Facebook</p> <p>I am using that java-script code in webpage that is loaded in web-view.</p> <pre><code>&lt;title&gt;Insert title here&lt;/title&gt; &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;&lt;script&gt; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); window.fbAsyncInit = function() { FB.init({ appId : 'MY_APP_ID', status : true, xfbml : true }); }; (function(){ if (document.getElementById('facebook-jssdk')) {return;} var firstScriptElement = document.getElementsByTagName('script')[0]; var facebookJS = document.createElement('script'); facebookJS.id = 'facebook-jssdk'; facebookJS.src = '//connect.facebook.net/en_US/all.js'; firstScriptElement.parentNode.insertBefore(facebookJS, firstScriptElement); }()); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;div class="fb-comments" data-href="MY_URL" data-colorscheme="light"&gt;&lt;/div&gt; &lt;/body&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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