0

I have a non game app and I want to invite my facebook friends by send notification. Facebook Platform Upgrade from last few months, check this link.

Now How can I send invitation to friends?

should I use sharing wall post instead of invitation.

Thanks.

itzmebibin
  • 9,199
  • 8
  • 48
  • 62
Jagdev Sendhav
  • 2,875
  • 4
  • 15
  • 24
  • Invitations are fine to use. Just Facebook won't issue notifications until your app is live on the App Store (until you don't have live app store id). – Fahri Azimov Jun 30 '14 at 11:52
  • Hey @UserDev! have you got any way for it , i have same issue , so please send any answer, if you have – Ravi Ojha Jul 01 '15 at 12:48
  • It's not possible for non game app, you can only use invitation feature for game category app. – Jagdev Sendhav Jul 01 '15 at 12:51

2 Answers2

0

You can send invitation even now :

try this code....

[FBWebDialogs
         presentRequestsDialogModallyWithSession:nil
         message:@"YOUR_MESSAGE_HERE"
         title:nil
         parameters:nil
         handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
             if (error) {
                 // Error launching the dialog or sending the request.
                 NSLog(@"Error sending request.");
             } else {
                 if (result == FBWebDialogResultDialogNotCompleted) {
                     // User clicked the "x" icon
                     NSLog(@"User canceled request.");
                 } else {
                    NSLog(@"Request Sent.");
                        }
             }
         }];

Hope this will help you.

  • Yes I checked it: http://stackoverflow.com/questions/15495462/presentrequestsdialogmodallywithsession-does-not-work-but-gives-good-result but will it facebook allow for NON game app. have you read facebook invite api? – Jagdev Sendhav Jun 30 '14 at 11:59
0

use this code you can invite your facebook script section.

Link.

<script>
document.getElementById("apprequest").onclick =  function(){

FB.ui({method: 'apprequests',
      message: 'YOUR_MESSAGE_HERE'
    }, function(response){
        alert("Success");
  //console.log(response);
    });

}
</script>

HTML section

<body>

<div id="fb-root">

<button id="apprequest" name="btnLogin" >App Request</button>

</div>
itzmebibin
  • 9,199
  • 8
  • 48
  • 62
Smoke
  • 89
  • 1
  • 8
  • 15