Top Banner
Fantasy
21

Fb social api

Jul 15, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Fb social api

Fantasy

Page 2: Fb social api

Facebook

Google+

Twitter

LINE

LinkedIn

Youtube

Tumbler

Page 3: Fb social api

Reduce effort of sign up procedure.

Enhance wish of user to use the APP.

Get more info from user, ex: friends, email, public profile, birthday ……etc.

Increase user experience.

Page 4: Fb social api

Instagram

Spotify

Tower of Saviors

SlideShare

IMDb

SoundCloud

Youtube

Page 5: Fb social api
Page 6: Fb social api

Add a new App

Page 7: Fb social api

Download Facebook SDK◦ Login, Share, Graph API, Send Request, Custom

Stories, App Links, App Events, Ads, App Center

Install Facebook on emulator or device• For Login and Sharing

Import the Facebook SDK to Eclipse

Add SDK to Android project• Add library, facebook app id, user-permisson,

meta-data

Page 8: Fb social api

App Info• Package name and main activity name

Key Hashes• Development and release key hash

Finish

Page 9: Fb social api
Page 10: Fb social api

Default approved items◦ public_profile

◦ user_friends

◦ email

Need submit items◦ user_about_me

◦ read_friendlists

◦ user_like

◦ publish_actions

◦ and so on……

Don’t need publish_actionsusing share dialog.

Page 11: Fb social api
Page 12: Fb social api

LoginButton in layout

Session.StatusCallback

Page 13: Fb social api

OnSessionStateChange

UiLifecycleHelper

Page 14: Fb social api

UiLifecycleHelper

Page 15: Fb social api

Request basic permission

1.

2.

Page 16: Fb social api

Request publish permission

Re-request permission

Page 17: Fb social api

ShareDialog

WebDialog

Page 18: Fb social api

ShareDialog WebDialog

Page 19: Fb social api

FriendPickerFragment

Page 20: Fb social api
Page 21: Fb social api

1. AndroidSocialNetwork• Collect Facebook, Twitter, LinkIn and Google+ API

2. android-simple-facebook• Simplify and demo Facebook social API.