简体   繁体   中英

Send app invite to friend

I want to use facebook sdk (the newest one, 3.5) to send a request to a friend to try out my app. I have got it to work using the code below but no notification is sent to the user. It only shows the request when they go to the "apps" section within facebook. And to make things worse, it seems to only show up in the "apps" section if they go through the desktop site and not the native iOS facebook app.

Can anyone tell me what additional code needs to be added in order for the users to receive the notification inviting them to my app? Thanks!

CODE

 [FBWebDialogs
 presentRequestsDialogModallyWithSession:nil
 message:@"Check out this new app!"
 title:@"Amazing new app!"
 parameters:nil
 handler:nil];

I have the same problem but believe that the answer is as follow. If you ONLY uses Facebook for iOS and not have a canvas app. It does downprioritize the notifications to only be in applicationcenter. However if you do have Facebook on iOS you will recieve the notification on the normal spot (the globe icon).

If you do have a canvas app as well the notification will be upprioritized on desktop (as it is on desktop you use the canvas) and will be visible in notifications.

I'm just looking for any facebook-source to confirm this but this is what it looks like when I try it out.

EDIT Solution is confirmed. When I have an Facebook App (canvas) the notification is sent to notifications on desktop. If I don't, it is sent to applicationcenter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM