Note that there are some explanatory texts on larger screens.

plurals
  1. PONot Posting on friend's wall with simple feed method
    primarykey
    data
    text
    <p>I have almost wasted my whole day in searching why is it not posting on friends wall</p> <p>please help</p> <p>I do not get any errors but the post doesnt seem to be appearing on friends wall.</p> <p>i get a dialog box saying to post on friends wall.. when i confirm by clicking share it gets closed but no changes on friends wall</p> <p>I tried on many different friends wall to check for any privacy policy but i dont think thats the matter of concern here.</p> <p>if i dont specify "to" paramter it gets posted on my profile but only problem is with friends wall </p> <p>code is as follows</p> <pre><code>&lt;script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js"&gt; &lt;/script&gt; &lt;script src="http://connect.facebook.net/en US/all.js"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; window.fbAsyncInit = function() { FB.init ( { appId : 'appid', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true , // parse XFBML oauth : true // Enable oauth authentication } ); }; $(document).ready(function () { $('#shareonfacebook').click(function (e) { e.preventDefault(); var obj= { method: 'feed', name: 'DvimayPostPhoto', link: 'http://localhost/FaceBook/index.html', picture: 'http://www.fbrell.com/public/f8.jpg', caption: 'hey how is my Application ? tell me dude', description: 'hey how is my Application ?', to: 'frnd id', message: '' }; function callback(response) { document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; } FB.ui(obj, callback); }); } ); &lt;/script&gt; &lt;script&gt; FB.init({appId : 'app id'}); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt; (function() { var e = document.createElement('script'); e.src = document.location.protocol +'//connect.facebook.net/en_US/all.js'; e.sync= true; document.getElementById('fb-root').appendChild(e); } ); &lt;/script&gt; &lt;script src="C:/Users/Dvimay/Desktop/HIGHCHARTS/js/highcharts.js"&gt;&lt;/script&gt; &lt;script src="C:/Users/Dvimay/Desktop/HIGHCHARTS/js/modules/exporting.js"&gt;&lt;/script&gt; &lt;div id="container" style="height: 400px;width:500px;"&gt;&lt;/div&gt; &lt;input type="button" id="shareonfacebook" value="Share This Link on Facebook"&gt;&lt;/input&gt; &lt;/html&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