Any example of Sending apprequest app-to-user? [closed]

会有一股神秘感。 提交于 2019-12-13 11:28:31

问题


How can I send apprequest (app-to-user)? Do I need a special permission for that or just the user id? Any limitation of # of users per request? Anyone got sample code for sale?

I have already checked these links:
https://developers.facebook.com/docs/requests/
https://developers.facebook.com/docs/reference/dialogs/requests/
https://developers.facebook.com/docs/reference/api/user/#apprequests

回答1:


I don't think app-to-user requests are going to get you what you want. As they can only be sent to current app users.

From: https://developers.facebook.com/docs/requests/

App To User Requests

App to User Requests can be used to re-engage a user in your app and can only be sent to users that have installed the app. For example, notifying a user that something has changed since their last visit, "10 of your friends are now online".

App to User Request are sent via the Graph API, for more information see the apprequests docs. App to User Requests are only available for Canvas apps, not websites, as accepting a request will direct the user to the Canvas Page URL of the app that sent the Request. Notifying Users of a App Request

App to User Requests do not create notifications, though they do appear in the App and Games Dashboard and increment an app bookmark counter, similar to User to User Requests. Accepting an App Request

This process is identical to accepting a User to User Request.

From https://developers.facebook.com/docs/reference/api/user/#apprequests

Create

You can post a apprequest for a user by issuing an HTTP POST request to /USER_ID/apprequests with the app access_token.

Note: POSTing to the Graph API endpoint of /USER_ID/apprequests is considered an App to User Request. App-Generated Requests do not receive notifications and get limited distribution in comparison to User to User Requests sent with the Request Dialog



来源:https://stackoverflow.com/questions/9185009/any-example-of-sending-apprequest-app-to-user

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