Sending a friend invite on Facebook
Social networks allow us to interact with our friends and the world as they are getting increasingly globalized. NFC can also play its part in social networking by facilitating and improving the user's experience. In this recipe, we will see how the NFC technology can bring people closer by simplifying the process of initiating friend requests on Facebook.
Getting ready
We need the following settings for this recipe:
We will need two active Facebook accounts. One account should be a part of the developer program.
The Facebook application needs to be installed on the emulators (you can learn how to do this by navigating to https://developers.facebook.com/docs/android/getting-started/#install) or on the smartphones, and each one should be signed in with a different account.
How to do it…
In this application, we will send a Facebook friend request with an NDEF message by performing the following steps:
Download the Facebook SDK for Android from https://developers...