Invite Facebook friends to my app

I am writing an entertainment application (RESTful application written on Android). I want to show my friends to Facebook and invite them to my application . Now I have successfully downloaded FB friends. What will I do next? Please give me an idea.

(I think I should send them an invitation letter. Right?)

+4
source share
3 answers

My ideas:

  • Call the Facebook API to post a link to download your application to your friends wall.
  • Send an SMS or email if you have this data.
  • Create an application on Facebook. Then send the application request to your friends. Your friends will be notified on Facebook. (I am currently using this to invite a friend to my application).
+3
source

Please check out the following documentation: https://developers.facebook.com/docs/mobile/android/build/

Look for the query dialog box. https://developers.facebook.com/docs/reference/dialogs/requests/

Those that make your life easy, you just need to choose friends!

+4
source

invite a friend of facebook from your application or website, use this small line of code and send an invitation to all friends from Facebook to visit your site. I also used this script that works well. your domain must be ssl certified because facebook did not allow unsecured domains.

<script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({ appId:'APP_ID', cookie:true, status:true, xfbml:true }); function FacebookInviteFriends() { FB.ui({ method: 'apprequests', message: 'Your Message diaolog' }); } </script> //HTML Code <div id="fb-root"></div> <a href='#' onclick="FacebookInviteFriends();"> Facebook Invite Friends Link </a> 

add this code below to the home page of your site.

 <script type='text/javascript'> if (top.location!= self.location) { top.location = self.location } </script> 

for more details you can check: - http://www.9lessons.info/2012/07/facebook-invite-friends-api.html

-1
source

All Articles