This example covers most basic Facebook functionality, and is a direct 1-1 port of the HelloFacebook Objective-C sample located in the FacebookSDK samples directory. See https://developers.facebook.com/ios/ for more information.
- combines use of FBLoginView,
- FBProfilePictureView,
- FBFriendsPickerViewController,
- and FBRequest for profile access, status updates and photo uploading.
For reference to the original Objective-C version, please see https://github.com/damassi/Motion-FacebookSDK/tree/master/Objective-C-Version/HelloFacebookSample . Make sure you're wearing your shades!
- Go here and install the SDK: https://developers.facebook.com/ios/
- Navigate to
Documents/FacebookSDKand copyFacebookSDK,HeadersandResources - Create a
vendor/FacebookSDK3folder in your RubyMotion project and paste the above in - Rename
FacebookSDKtoFacebookSDK.a - Edit your Rake file to include the necessary frameworks, libs and vendor_projects as seen here
- Done!