Preview

Select Friends

Good Essays
Open Document
Open Document
1218 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Select Friends
Select Friends by Device
Documentation › Select Friends by Device
The Facebook SDK for iOS includes an FBFriendPickerViewController control object that makes it simple to add a friend selector to your app. The friend selector can filter the friends you display.

You may want to restrict the friends that display to show only those with specific devices. As an example, you may want to target friends that use platforms you support for a subsequent invite to use your app. This article guides you through how you can use a query for friend device data to filter the friends in the friend selector.

This document walks through the following topics:

Prerequisites
Sample Overview
Step 1: Set Up the Friend Selector and Query Device Data
Step 2: Filter the Friend Selector with Device Data
Troubleshooting
Additional Info
Prerequisites

The code for the starting point for this doc can be found on GitHub. If you haven't done so, clone the how-to samples for the Facebook SDK:

git clone https://github.com/fbsamples/ios-3.5-howtos.git
Then open the Xcode project under the FriendPickerDeviceFilterHowTo/Initial folder.

Sample Overview

The completed sample allows users to log in with Facebook and select friends with iOS devices. In this simple sample, we'll echo back the selected friends.

After the person logs in, a button is available that's used to show the friend selector. The friend selector is configured to display Done and Cancel buttons that dismiss the picker. The displayed friends are filtered to only include friends with iOS devices.

The friend selector displays with the FBFriendPickerViewController Facebook SDK object. After the object is initialized, call the loadData instance method to load and set up the initial friend selection. During the initialization step, the object is configured to request friend device data. During the display step, the FBFriendPickerDelegate protocol's friendPickerViewController:shouldIncludeUser: method is

You May Also Find These Documents Helpful

  • Better Essays

    Nt1310 Unit 3 Assignment 1

    • 1056 Words
    • 5 Pages

    With the fast paced lifestyles people lead today, we have limitations in face to face interactions and how often we communicate with close or distant friends. Social networking has made it possible for people to stay in contact and expand relationships with friends, family, co-workers and acquaintances at our fingertips. Some of the social networks many people use today are Facebook, Twitter, LinkedIn, and Google+.…

    • 1056 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Adults, as well as children being raised in today’s society are equipped with a vast array of advanced technological equipment so we are seeing a change in the way friendships evolve. The new type of friendships we see forming now are interpersonal communication with networking sites. This is what we refer to as digital friends and reference what is often called social-networking. “With the social-networking sites of the new century-Friendster and My Space were launched in 2003, Facebook in 2004- the friendship circle has expanded to engulf the whole of the social world, and in doing so has destroyed both its own nature and that of individual friendship itself. (Deresiewicz 151).”…

    • 393 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Friend Colleague (f ormer or present) Facebook Acquaintance Relative Family Member 0 0 0 0 1 0% 0% 0% 0% 100%…

    • 325 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    The word “friend” was broadly defined to be someone the participant would recognize by first name, know a fact about, and approach if met unexpectedly. 1. 2. 3. 4. How many immediate (family) and distant friends do you have? How many Facebook.com friends do you have? How often do you check your Facebook.com account per day? How often do you update it? How do you make new friends on Facebook.com? Are they people you met in person first? Is there a portion of people you invited based on their Facebook.com profile alone? How many events over the past year have you attended in part because of their placement on Facebook.com via messages from groups you’ve joined or advertisements? More generally, what role do group events play when organized on Facebook.com? How often do you leave friends a message on their phone or write them for their birthday? Are you more likely to add someone you’ve never met to your friends list if you see they are part of your social network (i.e. you share one of more friends with them) or would you invite them regardless? How has Facebook.com more generally affected your interpersonal relations (i.e. high school…

    • 2628 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    SnapChat Explanation

    • 916 Words
    • 4 Pages

    The application Snap Chat was created in September of 2011 by a group of Stanford university students. To set up an account the potential user must download the application from the app story. When the application is downloaded the user chooses the option “Make an Account”. Once this option is chosen the application requires very basic information such as a user name and password. After making an account the user is able to find friends by either searching for their friend’s whole name, or their friend’s user name. In the application users are able to take a photo or video of anything they would like. Once this photo or video is taken they are able to use a maximum of thirty three characters to write a description of the photo or video. Also, users are able to use a doodle option where they can draw over their photo or video. After this is done, the user is able to choose how long they want their friends to see their photo after they send it. They have the option between one to ten seconds. When it comes to a persons friends list, every person has their average friends and then up to at least three best friends. These friends are defined as “best” because they are the people a person send pictures and videos to the most or vice…

    • 916 Words
    • 4 Pages
    Good Essays
  • Better Essays

    William Deresiewicz explained in his essay, “Faux Friendship,” that the majority of Facebook members who have over five hundred friends, really have fake friends. If a person accepts a friend request from anyone, or even sends out a friend request to every acquaintance that he or she knows, then that person is inviting just about anyone to look up his or her life events. If a Facebook user is worried about privacy, he or she should limit their Facebook friends to people who they would trust with their home address.…

    • 1379 Words
    • 6 Pages
    Better Essays
  • Good Essays

    One of the new phenomenon’s of our generation is facebook, and with over four hundred million users on it, it is definitely not hard to add friends easily. However, Facebook is also an easy way to replace the outside world with spending all day surfing other peoples profiles. Facebook is a social networking website that was originally designed for college students, but is now open to anyone 13 years of age or older. Facebook users can create and customize their own profiles with photos, videos, and other information about themselves. Also, friends can browse the profiles of other friend’s pages and comment on their updated status or just write on the wall of the person. Facebook is a great website for finding old friends and connecting to new ones, however using the site too much can make people less inclined to interact face to face with other people.…

    • 757 Words
    • 4 Pages
    Good Essays
  • Better Essays

    The Impact of Social Media

    • 1172 Words
    • 5 Pages

    Neal Gabler’s article “The Social Networks” says “Facebook, in fact, only underscores how much traditional friendship-friendship in which you meet, talk and share – has become an anachronism and how much being “friended” is an ironic term” (par7). Sadly, it is true that people sometimes prefer to have more contact with friends through a social network, calls or texting than to be seen in person. The way people used to have coffee with friends on weekends, meet to chat about an important event that happened or just hang out with an old friend seem to have been lost along with the importance of real friendship. Now, people have more friends on Facebook that they used to have when social networks were not widespread, and probably they do not know 80% of their Facebook friends.…

    • 1172 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Facebook is an online social networking site founded in 2004 (Facebook.com, n.d.). The purpose of this website is to connect family and friends and to share content such as pictures, status updates, and event invites between the user’s contacts. The site also has numerous games that many users participate in for entertainment. The website states the mission of Facebook is to “give people the power to share and make the world more open and connected,” (Facebook.com, n.d.). Every day millions of people log on to connect with friends and family, sharing photos, links, and videos.…

    • 1380 Words
    • 6 Pages
    Good Essays
  • Good Essays

    it doesnt matter

    • 284 Words
    • 2 Pages

    The facebook platform provides third party developers a platform for applications like games plug in features for users’ profiles and other programs which are fully integrated with the facebook site.…

    • 284 Words
    • 2 Pages
    Good Essays
  • Good Essays

    1. FBML (FaceBook Markup Language). It is a FaceBook server in built scripts provide by FaceBook itself.…

    • 308 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Escapism from Real Life

    • 1676 Words
    • 7 Pages

    Facebook is a social networking website intended to connect friends, family, and business associates. It is the largest of the networking sites, with the runner up being MySpace. It began as a college networking website and has expanded to include anyone and everyone. Facebook users can create a profile page that shows their friends and networks information about them. The choice to include a profile in a network means that everyone within that network can view the profile. The profile typically includes the following: Information, Status, Friends, and Friends in Other Networks, Photos, Notes, Groups, and The Wall.…

    • 1676 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    The second worst thing is the Unwanted Information, You would like to keep your Facebook use to a minimum but your friends are constantly sending you requests to join them in social games, or sharing information that is really better kept a secret. There are options to hide or block applications or users, but new applications are always popping up to take their…

    • 301 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Friend Requests

    • 1704 Words
    • 5 Pages

    This is upsetting to me, because I rarely ‘friend’ people on Facebook. I actually have a policy about Facebook friend requests. In order to accept one or send one, I require that I have either met you in person once in my life, or have had several email conversations with you.…

    • 1704 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Truth and Facebook

    • 373 Words
    • 2 Pages

    with people in your life, but first you have to know who those people really…

    • 373 Words
    • 2 Pages
    Good Essays

Related Topics