Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook post message on wall through Fb Application with graph api
    primarykey
    data
    text
    <p>I'm facing a weird issue with Facebook, I'm currently developping an application with Phonegap.</p> <p>I followed the really cool tutorial of this blog <a href="http://www.drewdahlman.com/meusLabs/?p=88" rel="nofollow">http://www.drewdahlman.com/meusLabs/?p=88</a> and improved it to be able to make it work with the new API and also to allow me to Post message.</p> <p>So I'm using oAuth to connect with Facebook and everything works fine. Then I have been able to post message through graph api with the same Token. </p> <p>So I have this method who works perfectly, when I'm using my Facebook account (I am the administrator of the Facebook application)</p> <pre><code>share:function(url, success){ var req = new XMLHttpRequest(); req.open('POST', url, true); var _interval = setTimeout(function(){ success.call(this, false); }, 31000); req.onreadystatechange = function() {if (req.readyState==4 &amp;&amp; req.status==200){clearTimeout(_interval); success.call(this, true);}} req.send(null); return req; }, post:function(_fbType,params, success){ var url = 'https://graph.facebook.com/me/'+_fbType+'?'+localStorage.getItem(facebook_token); for(var key in params){ if(key == "message"){ url = url+"&amp;"+key+"="+escape(params[key]); } else { url = url+"&amp;"+key+"="+encodeURIComponent(params[key]); } } var req = Facebook.share(url, success); }, </code></pre> <p>But if it's not an administrator of the application who use my application, the connexion will works fine but if try to post wit won't work.</p> <p>On my Facebook application the Sandbox mode is disabled. The app center review haven't been made yet, maybe the problem come from this ?</p>
    singulars
    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.
 

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