Presentation is loading. Please wait.

Presentation is loading. Please wait.

Social Networks Integration in Android

Similar presentations


Presentation on theme: "Social Networks Integration in Android"— Presentation transcript:

1 Social Networks Integration in Android
by Gianluigi Folino

2 Social Networks Integration in Android
Motivation Common Methodologies Facebook and Facebook login Facebook Graph Twitter Fabric kit Google Plus and other social networks

3 Motivation Everybody uses one or more social networks.
We do not need to develop API for Facebook and Twitter from scratch. Most of mobile applications have strong or light interactions with social networks

4 Common Methodologies Most of the social networks have the same method for integration in an Android app. Connect to a developer page (i.e., Generate a token Use the token into the android application and set the appropriate permissions Finally, the user authorizes the application to connect to his/her account.

5 Facebook Facebook «Social Plugins: Facebook is a social graph:
First social network for n° of active users. (1.55 billiards of active users –November 2015) «Social Plugins: Social plugins permit to see what your friends share, like, comment, etc. [Facebook Social Plugins, Like button; Comment; Facebook is a social graph: “The social graph is a contextual sociogram that describes all the members, organizations, groups and other user-end components of a social network and the relation/connection between them. A social graph helps to illustrate and map the overall structure and interrelation of social network members..” [What is the Social Graph - Techopedia,

6 Facebook Facebook Login Sharing on Facebook
Account kit Social Plugin Facebook Analytics Monetization (now Audience Network)

7 Facebook Login (1) Login and Access Token
For evident privacy issues, the calls to Facebook must be protected. Access Token: a string identifying and protecting a user Login flow: Connect to Facebook; Exchange security codes; (OAUTH 2.0 Protocol) Get the access token.

8 Facebook Login (2) Facebook App - Configured and linked to your app, with Single Sign On enabled. Facebook SDK - Added to your project, see Getting Started, Facebook Android SDK. Facebook App ID - Configure and link this to your Android app. See Android Getting Started, Add Facebook App ID (you find it in: /developers.facebook.com/apps -> your app) Android Key Hash - Generate this and add it to your developer profile Facebook Activity - Include this in AndroidManifest.xml Permissions Review. (test Application avoid the Permission review.)

9 Social Plugin See what your Facebook friends liked, shared, or commented on across the Web. Like, Share & Send Button Embedded Posts & Video Player Page Plugin (New Like Box) Comments Follow Button

10 Graph API (1) Social Graph:
nodes - basically "things" such as a User, a Photo, a Page, a Comment. edges - the connections between those "things", such as a Page's Photos, or a Photo's Comments fields - info about those "things", such as a person's birthday, or the name of a Page

11 Graph API (2) Graph API Low level API based on HTTP calls, permit to query data, post new stories, manage ads, upload photos, etc. Based on the social graph concept. Most Graph API requests require the use of access tokens. Each node has a unique ID which is used to access it via the Graph API. Use the Graph API Explorer to simulate how the API works and to get the code for the App. Remember to get User Access Token before and give the appropriate permissions. Examples (permissions: user_posts, user_photos): /me/friends?limit=25&offset=0&fields=id,name,work, /me?fields=albums.limit(5){name, photos.limit(2)},posts.limit(5)

12 facebook-android-sdk
Tutorial: API for FB by FB targeting Android Facebook Application ID must be set for developing any mobile app. with this SDK

13 Twitter integration: obsolete API
Unofficial Java library for the Twitter API: Twitter4j Java library for the Twitter API: Jtwitter Open Source Project hosted on githhub: Twitter-Android-sdk

14 Twitter integration: Fabric
Ide plugin for Android Studio and Eclipse or manual integration. Fabric Kits:  Answers (real-time analytics), Crashlytics(stability and reliability of the apps),  MoPub (monetizing our app by adding advertisements), Stripe(mobile payments) and Twitter (real Twitter integration, login, sharing, etc.).

15 Fabric Kit: Twitter

16 Fabric Tutorials: Other tutorials

17 Google Plus integration
Integrating Google Plus into Android App Integrating Google Sign-In Sharing to Google Plus Getting People Information


Download ppt "Social Networks Integration in Android"

Similar presentations


Ads by Google