No Notification when App sends event Invites via Open Graph

蓝咒 提交于 2019-12-07 08:10:33

问题


My code looks something like this...

FB.api('/'+eventId+'/invited?users='+selectedFriends.join(','), 'post', { message: body }, function(response) {
                  if (!response || response.error) {
                    alert('Error occured, please try again. ('+JSON.stringify(response.error)+')');
                  } else {
                    alert('Invites Sent! ' + response.id);
                  }
                });

It sends invites, however the users don't receive a notification. The only way the user knows that she was invited to the event is to check her Event list. I want to notify the user somehow -- an email, wall post, or app request comes to minds -- but I don't want to spam my users. How would you suggest dealing with this situation?


回答1:


You shouldn't use invites then. Invites are specifically intended to appear in a user event list. But since you don't want to spam your users, your other options (email/wall post/app request) won't work either, because they're inevitably leading to spam by nature...

So make your choice: invites - recommended way but no active notification, or email/wall post/app request - likely to be considered as spam but active notification.

I'd advise to use invites and not to worry about users being actively notified. They are recommended by Facebook, fall into their game framework, and even if the notification is not obvious, the method has proven to be quite effective for most apps until now ;)



来源:https://stackoverflow.com/questions/8043950/no-notification-when-app-sends-event-invites-via-open-graph

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