Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The error message you receive ("All users in param ids must have accepted TOS") is because you are trying to send an app generated request to a user who is not connected to your app.</p> <p>See the <a href="https://developers.facebook.com/docs/requests/#app_to_user" rel="nofollow noreferrer">developer docs here</a>.</p> <p>Requests sent with the request dialog and app generated requests are different and you can't use app generated requests to invite users to your app.</p> <p>Sending Facebook app requests are not available via the graph api. You can use the <a href="https://developers.facebook.com/docs/reference/dialogs/requests/" rel="nofollow noreferrer">app requests java-script dialog</a> to send the request though, you would just need to specify the user's id in the "to" property as detailed in the documentation. </p> <p>Sample function:</p> <pre><code>&lt;script&gt; FB.init({ appId: '**appId**', status: true, cookie: true, xfbml : true }); function sendRequest(to) { FB.ui({method: 'apprequests', to: to, message: 'You should learn more about this awesome site.', data: 'tracking information for the user'}); return false; } &lt;/script&gt; </code></pre> <p>Then just wire an onclick for each image to something like <code>onclick="return sendRequest('**friendId**');"</code></p> <p>Also you can call this function in javascript: It will give you all friends with photos. Also group of friends who are currently using same app. You can send request to any of them.</p> <pre><code>function sendRequestViaMultiFriendSelector() { FB.ui({ method: 'apprequests', message: "You should learn more about this awesome site." }); } </code></pre> <p>See <a href="https://stackoverflow.com/questions/7767688/facebook-friend-request-error-all-users-in-param-ids-must-have-accepted-tos">Facebook Friend Request - Error - &#39;All users in param ids must have accepted TOS&#39;</a> </p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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