How to send the app request using php in facebook

為{幸葍}努か 提交于 2019-12-12 05:27:43

问题


I have a app which i have registered in facebook. I want to add a option of sending app request to all my friends in facebook. I need to do it by authenticating and the asking the permission to continue to send all friends the app request. This i want to implement in php. Please help me friends...


回答1:


I believe you have to do this using a 'Requests Dialog' which is available only through JavaScript. See below page for more information and examples of how to do this:

https://developers.facebook.com/docs/reference/dialogs/requests/




回答2:


It is only possible with the JavaScript popup, and there is a limit of how many requests you can send. Sending an app request to ALL your friends at once is considered spam anyway, you should never do this even if it would be possible.

https://developers.facebook.com/docs/reference/dialogs/requests/

You can, of course, use the "to" parameter to specifiy the friends you want to send the request to:

function sendRequestToRecipients() {
 FB.ui({method: 'apprequests',
    message: 'My Great Request',
    to: '499802820,499802852'
  }, requestCallback);
}


来源:https://stackoverflow.com/questions/13228643/how-to-send-the-app-request-using-php-in-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!