Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As Renesis said, the Graph API covers exactly what you need for the first three steps. </p> <p>For the fourth point, I've been looking at the API extensively for my own apps and have found out how to do it via <code>FBML</code> with the following code:</p> <pre class="lang-html prettyprint-override"><code>&lt;fb:serverFbml&gt; &lt;script type="text/fbml"&gt; &lt;fb:fbml&gt; &lt;fb:request-form method='POST' type='join my Smiley group' content='Would you like to join my Smiley group? &lt;fb:req-choice url="http://apps.facebook.com/smiley/yes.php" label="Yes" /&gt;' &lt;fb:req-choice url="http://apps.facebook.com/smiley/no.php" label="No" /&gt;' &lt;fb:multi-friend-selector actiontext="Invite your friends to join your Smiley group."&gt; &lt;/fb:request-form&gt; &lt;/fb:fbml&gt; &lt;/script&gt; &lt;/fb:serverFbml&gt; </code></pre> <p><a href="http://developers.facebook.com/docs/guides/canvas/#requests" rel="nofollow noreferrer">http://developers.facebook.com/docs/guides/canvas/#requests</a></p> <p>It seems as though Scott's incorrect when he says Graph incorporates everything the old REST API has:</p> <blockquote> <p>"We are currently in the process upgrading our core server API from the old REST API to the more modern Graph API. However, most of the methods required for canvas applications to integrate with Facebook have not yet been upgraded to the new API. For the time being, we recommend you continue using the old REST API in canvas apps instead of the new APIs for the sake of completeness."</p> </blockquote> <p>(I can only post one hyperlink, so it's the same one as the #requests hyperlink but in the 'Making API calls' section)</p> <p>Not sure if this is the case with other methods of integration such as web or desktop apps, but so far it seems as though the Graph API has a little bit of catching up to do!</p> <p>Edit:</p> <p>To list the profile pictures of a user's friend, use the following:</p> <p>Assuming you've already got the current user's ID</p> <pre><code>https://graph.facebook.com/**USER-ID**/friends?fields=picture,name&amp;access_token=**ACCESS-TOKEN** </code></pre> <p>This will provide a JSON object with a list of the current user's friends containing the UID, name and a link to the small version of the profile picture.</p> <p>I haven't found a way to retrieve the large picture version in a search yet so with that method, if you wanted the large version, you'd have to iterate through each user and use this:</p> <pre><code>https://graph.facebook.com/**USER-ID**/picture?type=large </code></pre>
 

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