Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacement for FBFriendPickerViewController for Facebook iOS SDK 4

According to Facebook v4 changelog, all FB*ViewController were deprecated and we should build our own table view controller to show friends list.

Now, before I put myself working on it, does anyone knows an alternative for FBFriendPickerViewController on Facebook v4?

Thanks

like image 279
estemendoza Avatar asked May 24 '15 00:05

estemendoza


People also ask

What is the Facebook SDK for iOS?

The Facebook SDK for iOS contains component SDKs that you can connect to individually. Drive installs with Mobile App Install Ads. Increase engagement with Mobile App Engagement Ads.

How do I update the Facebook SDK for my App?

If you use SPM or CocoaPods to integrate the Facebook SDK, see the Upgrade Guide for information on how to update your app. You can also download the latest version of the Facebook iOS SDK, integrate it into your app, and recompile.

What is Facebook-iOS-SDK on GitHub?

GitHub - facebook/facebook-ios-sdk: Used to integrate the Facebook Platform with your iOS & tvOS apps. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Failed to load latest commit information. Remove the publish_cocoapods step from CircleCI since its not possibl…

What do I need to know about my Facebook integration?

If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy).


1 Answers

FBFriendPickerViewController is no longer available in Facebook SDK 4.X onwards

Instead, you have to call Graph API to fetch the friend list:-

https://graph.facebook.com/USER_ID/invitable_friends

For more information see the docs

like image 186
Vineeth Joseph Avatar answered Oct 11 '22 23:10

Vineeth Joseph