Send app invite to friend - ios

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.

Related

Facebook iOS invite doesn't reach the invitee

I'm using FBSDKAppInviteContent to invite people to my app. I'm able to go through the wizard (after finally resolving an error about my app link which was incorrect, now it's not) and the invite was sent. No hiccups, and the delegate responds with {didComplete:1}.
However.. the notification doesn't reach the persons that I want to invite! I have verified:
My app is Live
My app has a valid iPhone Store ID
The app link opens the app
What have I missed?
I finally solved it with the help from the Facebook Developer Community.
The notification are only sent to the same platform your application is serving. If you have set it to iOS, the user who recieves the invitation will only be noitified on his iOS mobile, not on his Android, nor in the browser, desktop or mobile.
Hope that helps another poor sole!

Facebook iOS SDK 4.0 "App Invites" sent without iOS notification

I am currently using the Facebook iOS SDK 4.0. In examples they show that when a user sends an app invite, the receiver gets a notification from the FB app. That's not happening with me. A notification appears in the app when it's sent but ouside of the app, nothing. Here is my code:
- (IBAction)inviteFriends:(id)sender {
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:#"https://fb.me/413510792107174"]];
[FBSDKAppInviteDialog showWithContent:content delegate:self];
}
Because there is a notification in the app, it leads me to believe that the code is correct it's just a matter of configuration. Specifically, this is what I'm trying to achieve: https://developers.facebook.com/docs/app-invites/overview.
I've also tested for the app NOT being installed with the same result. I'm curious if anyone else is having this problem. Thanks in advance.
The following documentation on Facebook developer site, may help resolving it. testing with "test users" may help.
Testing
We have internal logic that determines whether a push notification is sent to the client. If we detect that the person has installed the app, we may not trigger a push notification. The best way to test push notifications is to use test users.
EDIT:
if "test users are authorized for this app", test users will have this app installed by default. Which means, you will have to send request before test user authorizes the app. Also, Test users can only interact with other test users, and not with real users.
Facebook seems to have resolved the issue as it now appears to be functioning correctly.

Facebook App Invide V4.0 Notification

I upgraded my apps (iOS and Android) to the new Facebook SDK (V4.0) to use the Facebook app invite. (See https://developers.facebook.com/products/sharing/app-invites).
My problem: when I send an invitation to a Facebook friend he gets a notification if he is using an Android device, but he doesn't get one if he is on iOS (even if he normally receives notifications from Facebook). Despite that, in both cases I can find the invitation in the Facebook app. So the problem is just about the notifications.
Do you know if Facebook has not implemented this part of their API or if I'm doing something wrong?
Thanks for your help.
I'm on the Facebook developer advocacy team and can help answer this for you.
The best way to test this is to use test users. The reason is that we don't send a push notification if we think the person has installed the app. If you use test users, it should work.

Notify Facebook users from iOS app

My iOS app gives the user the option to login using their Facebook account. I would like to be able to see the list with all the friends and invite the ones selected to use the app. The problem is that using the app request window, the friends get a notification that is displayed somewhere in the App Center, rather than in the Notifications panel. Unfortunately, this sort of notification is very subtle and might not be seen only after a long time.
From obvious reasons, I cannot fetch the emails of friends as this would be a great alternative.
Do you know if there is a way to send a Facebook Message or some other sort of notification that is more 'visible' to the receiver? Thanks!
I'm not sure if I completely understand your problem. If it's the problem that I think you're having, it sounds like you need to fill out more information on your Facebook App's configuration page.
From what I remember when I had this same issue, you need to have a Canvas URL set in your Facebook App's configuration page. Even if your app is not going to use Canvas, you need to have that part filled out in order for your friends to receive the app's notification jewel on Facebook.

Facebook Request Notification not showing in iOS mobile safari but in native facebook app

Use-case: I sent a request from my game to friend x. Friend x gets a notification in his native Facebook app, taps it and the game opens. If he opens the safari mobile page of Facebook the same notification is never shown.
Is there a way to enable request notifications to appear in the mobile website of facebook?
My game has an Facebook iOS App enabled, the bundle identifier is set and the Store ID is set.
The Facebook App runs in developement Mode.
well what i did to acomplish a similar result... Open my app from a button in an email... is using URL Schemes..
basically everything you need to do is modify your info.plist file and then your are ready to go.
whenever the device sends a request for example myapp:// ... (from a browser, another app, etc.) ... then your app will show up
here is an image with an example.. hope it helps
GL HF

Resources