Note that there are some explanatory texts on larger screens.

plurals
  1. POfacebook api calling offline
    primarykey
    data
    text
    <p>I am trying facebok api. For that I created a app-key. and wrote a small programm. installed apache and executed that HTML file. The facebook logo comes but I am not able to fetch any values from that program. if I execute the same program on facebook console it works and gives the values.</p> <p>is it not possible to usethe facebook api on a local machine connected to internet but in a private IP.? I dont want to directly work on my server. want to test a few things offline on my machine and than deploy the code..is it not possible></p> <p>Is there a better way to print the frdslist using java API in facebook apis</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;My Test Facebook Login Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt; window.fbAsyncInit = function() { FB.init({ appId : 'xxxxx', // App ID channelUrl : 'sample.com/backup', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); }; // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); FB.api('/me', function(response) { alert("Name: "+ response.name + "\nFirst name: "+ response.first_name + "ID: "+response.id); var img_link = "http://graph.facebook.com/"+response.id+"/picture" </code></pre> <p>});</p> <pre><code> FB.api('/me/friends', { fields: 'name,id,location,birthday' }, function(result) { }) &lt;/script&gt; &lt;div class="fb-login-button" &gt;Login with Facebook&lt;/div&gt; &lt;/body&gt; </code></pre> <p></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