 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.

Slides:



Advertisements
Similar presentations
Integrating Facebook into iOS Apps 08/25/2011 North Atlanta iOS Developers Meetup Group Presentation.
Advertisements

Facebook Part III How to Use the Features of Facebook Patrick Therrien Technology & Education Training Specialist.
Click the home button to go to the map. Click the arrow to advance the slides.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Authentication Simon Cross Partner Engineer facebook.com/sicross An Overview.
The Graph API Simon Cross Partner Engineer facebook.com/sicross An Overview.
FI-WARE Testbed Access Control temporary solution.
OAuth 2.0 By “PJ” (JP on meetup.com) iOS and PHP developer, and occasional lawyer Contact me via:
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook API Teppo Räisänen
Facebook for RSVP’ers You can do it!. What Questions Do You Have? What are you wanting to learn at this training?
UIAlertView, UIActionSheet, and Facebook Connection Lecture 4 1.
Facedroid Facebook for Android. Facebook Application - API key - Secret key - PHP page Facebook Application - API key - Secret key - PHP page Facebook.
Taking the Headache out of. Reach your sphere of influence on a daily basis – AT NO COST? Reconnect with friends and stay in touch with family – AT NO.
Google App Engine Google APIs OAuth Facebook Graph API
Facebook 101 Facebook - The largest social networking platform in the world By Kelby Peachey Social Media Chair - National Arthritis Walk Volunteer Committee.
Your Professional Network Powered by NCURA By: Stephanie Moore NCURA Community Curator.
SCERSIG: Creating Android Apps with App Inventor 26 October 2011 Ric Paul, Health Services Library, Southampton.
Android Application Development 2013 PClassic Chris Murphy 1.
Created by Amber Craddock, Kylee Stone & Caleb Truette.
BUILDING A FACEBOOK APP. STEP 1 Create a Developers License. Make sure to take note/record the app id/key.
Mobile Programming Lecture 16 The Facebook API. Agenda The Setup Hello, Facebook User Facebook Permissions Access Token Logging Out Graph API.
Tutorial. What is Instagram? Instagram is a free, online photo sharing, video sharing and social networking service that enables users to take pictures.
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Introduction to Facebook. Introduction In this workshop, we will: –Walk you through creating a Facebook account –Describe Facebook’s layout –Show you.
Imagery 2.0 –you are here and there A brief introduction to social photo and video.
An Introduction to the Powerful Social Network and What it Means for Your Business.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
Why I LIKE the Facebook Database… Sharon Viente May 2010.
Introduction With TimeCard users can tag SharePoint events with information that converts them into time sheets. This way they can report.
1 Tradedoubler & Mobile Mobile web & app tracking technical overview.
The New SIMnet.org with Social Networking User Orientation Notes June 21,
The 1:1 meeting scheduler that runs itself The 1:1 meeting scheduler that runs itself.
Visiting Angels Presenter: Social Angel Facebook.com/VisitingAngelsCorporate Social Care.
Face your Facebook Fears Take control of your profile privacy settings and use Facebook to communicate with students MOACAC Conference, 4/12/11 Presenters:
DATA NOTIFICATIONS AUTH SERVER LOGIC LOGGING DIAGNOSTICS PLATFORMS: SCHEDULER SCALE.
1. Go to 2. Complete the requested information.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
INSERT CHARACTER’S NAME Facebook Project YOUR NAME.
Facebook Query Language Dr.Kwanchai Eurviriyanukul February 2011 RMUTL.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
COM 354 New Media Ethics Robert Bodle IR11 - GöteborgGöteborg.
Facebook is a social utility that connects you with the people around you. Use Facebook to…  Keep up with friends and family  Share photos and videos.
FACEBOOK Material adapted from
Facebook for Beginners One Session Class. What will you learn today? What can you do on Facebook? Creating a profile Privacy Connecting with friends Sending.
New Communication Platform of Our Class.
Lab #3: Programming Exercises for Social Web APIs By J. H. Wang Dec. 26, 2011.
Folio3 IPhone Training Session 2 Testing App on device Presenter: Imam Raza.
Virtual techdays INDIA │ November 2010 Integrating Social Networks with ASP.NET Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys WE.
Secure Mobile Development with NetIQ Access Manager
 Smartphones – iPhone, Android, Blackberries, etc  Tablets – iPad, Android, Windows, Google, etc.  Computers Basically anything that can connect to.
Mastering the AUPHA Network Kristi Donovan, MS, CAE Senior Director, Professional Affairs 2012 AUPHA Annual Meeting June 2, 2012.
Tech Tuesday: Facebook 101 People’s Resource Center January 26, 2016.
CEO: O.D. Kobo 1.  Pheed is the newest and latest social media site/app.  Pheed allows users to interact and express themselves as they so choose. 
AN INTRODUCTION TO FACEBOOK. Learning Objectives A brief introduction to the social networking site Facebook. Instructions to create an account. How to.
The Alfresco iOS SDK Gi Lee (Zia Consulting) Peter Schmidt (Alfresco)
The best independent Business Instant Messenger any organization can get.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Knowledge Hub Walkthrough August
Whats Out? What’s In? What’s New?
4/18/2018 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Paytm App is your one-stop destination for all your needs
CARA 3.10 Major New Features
EBSCO eBooks.
Social Networks Integration in Android
Sensors, maps and fragments:
IOS SDK v1.0 with NAM 4.2.
1. Download the Instagram app
Windows SDK for Facebook
WHAT IS THE DIFFERENCE BETWEEN THE FACEBOOK NEWSFEED AND THE TIMELINE
Canvas introduction for students
Presentation transcript:

 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van

Topics covered  Facebook Integration  …  Graph API  Social Channels

Facebook Integration  Registering your iOS App with Facebook  Install Facebook SDK  Implement Single-Sign On  Using Facebook in our project.

Registering your iOS app with Facebook

Install Facebook SDK  Download Facebook iOS SDK:

Single Sign On  SSO lets users sign into your app using their Facebook identity.  SSO primarily works by redirecting users to the Facebook app on their devices. After authorization, users will be redirected to your mobile app with the appropriate access_token.

Integration Facebook iOS SDK  Projects don’t use arc  drag src folder to project folder.

Integration Facebook iOS SDK (cont.)  Projects do use ARC  Creating an iOS Facebook SDK Static Library  Run file build_facebook_ios_sdk_static_lib.sh under script directory: % ~/facebook-ios- sdk/scripts/build_facebook_ios_sdk_static_lib.sh  If building successfully, it will create static library under lib folder

drag the facebook-ios-sdk folder into the app Xcode project to include the iOS Facebook SDK static library. Integration Facebook iOS SDK (cont.)

Using Facebook in our project  In your App Delegate  #import "FBConnect.h” MyGreatIOSAppAppDelegate : NSObject  Declare instance variable: Facebook *facebook (used for invoking SSO, Graph API, Platform Dialogs..)  Add lib Security.framework, QuartzCore.framework, SystemConfiguration.framework, CFNetwork.framework

 In App Delegate implementation file (.m):  Instantiate facebook variable:  facebook = [[Facebook alloc] andDelegate:self];  Set up valid session with Facebook by assigning access_token and expiration_date

 Check session valid, if users don’t login or access_token expired, call authorize to ask users for login with permission

 Handle

 Archiving user access token to NSUserDefaults for later access  implement fbDidLogin (FBSessionDelegate)

Enable SSO in your app

Graph API iOS SDK Android SDK PHP SDK

Graph API…  client_id=YOUR_APP_ID &redirect_uri= ml &response_type=token NSString *redirectUrlString NSString *authFormatString = &type=user_agent&display=touch  NSString *urlString = [NSString stringWithFormat:authFormatString, _apiKey, redirectUrlString, _requestedPermissions];// NSString *permissions

Graph API… At Facebook's core is the social graph; people and the connections they have to everything they care about. Every object in the social graph has a unique ID. You can access the properties of an object by requesting All of the objects in the Facebook social graph are connected to each other via relationships.  Friends: friends ?access_token=... friends ?access_token=...  News feed (this is an outdated view, does not reflect the News Feed on facebook.com): home ?access_token=... home ?access_token=...  Profile feed (Wall): feed ?access_token=... feed ?access_token=...

Graph API…  Likes: likes ?access_token=... likes ?access_token=...  Movies: movies ?access_token=... movies ?access_token=...  Music: music ?access_token=... music ?access_token=...  Books: books ?access_token=... books ?access_token=...  Notes: notes ?access_token=... notes ?access_token=...  Permissions: permissions ?access_to ken=... permissions ?access_to ken=...  Photo Tags: photos ?access_token=... photos ?access_token=...

Graph API…  Photo Albums: albums ?access_token=... albums ?access_token=...  Video Tags: videos ?access_token=... videos ?access_token=...  Video Uploads: videos/uploaded ?access_to ken=... videos/uploaded ?access_to ken=...  Events: events ?access_token=... events ?access_token=...  Groups: groups ?access_token=... groups ?access_token=...  Checkins: checkins ?access_token=... checkins ?access_token=...  Objects with Location: locations ?access_token=... locations ?access_token=...

Selection &&Pictures  You can choose the fields (or connections) you want returned with the "fields" query parameter.  You can also request multiple objects in a single query using the "ids" query parameter  The "ids" query parameter also accepts URLs / /  You can render the current profile photo for any object by adding the suffix /picture to the object URL.

Paging  When querying connections, there are several useful parameters that enable you to filter and page through connection data:  limit, offset:  until, since : nana nana

Reference  iOS Tutorial: build/ build/  Graph API pi/ pi/  Achievement(Instance) Album ApplicationCheckin Comment Domain Event FriendList Group Insights Link Message Note Offer Order Page Photo Post Question QuestionOption Review Status message Subscription Thread User Video Achievement(Instance)AlbumApplicationCheckin CommentDomainEventFriendListGroupInsights LinkMessageNoteOfferOrderPagePhotoPost QuestionQuestionOptionReviewStatus message SubscriptionThreadUserVideo