Presentation is loading. Please wait.

Presentation is loading. Please wait.

FACEBOOK API, ANDROID, AND YOU IT DOESN’T HAVE TO BE FRUSTRATING!

Similar presentations


Presentation on theme: "FACEBOOK API, ANDROID, AND YOU IT DOESN’T HAVE TO BE FRUSTRATING!"— Presentation transcript:

1 FACEBOOK API, ANDROID, AND YOU IT DOESN’T HAVE TO BE FRUSTRATING!

2 FACEBOOK QUICKSTART https://developers.facebook.com/quickstarts/

3 IMPORT FACEBOOK MODULE File -> Import Module

4 COULD NOT FIND PROPERTY 'ANDROID_BUILD_SDK_VERSION' ON PROJECT ':FACEBOOK'. In top level folder, open gradle.properties and add: ANDROID_BUILD_TARGET_SDK_VERSION=21 ANDROID_BUILD_TOOLS_VERSION=21.0.1 ANDROID_BUILD_SDK_VERSION=21 ANDROID_BUILD_MIN_SDK_VERSION=15 I copied my settings from the app level build.gradle

5 ADD FACEBOOK DEPENDENCY TO MAIN APP File -> Project Structure

6 SHARING IN ANDROID https://developers.facebook.com/docs/android/share#linkapi

7 ADDING UI HELPER CODE Follow the directions on the website and add the code from step one to the activity in which you want to add a button to post to Facebook. Shortcut to Import All Ctrl + Alt + O Cycles through each item and lets you add it by hitting Alt + Enter.

8 ADDING THE SHARE BUTTON Create a button on your activity page and link it to a method with the code from step two!

9 ADDITIONAL RESOURCES To edit the kinds of things you want to post to Facebook, edit the ShareDialogBuilder. The page for that can be found here: https://developers.facebook.com/docs/reference/android/current/class/FacebookDialog.ShareDialogBuild er/ Instructions on how to upload images, links, places, etc, can all be found there. Email me at KeithAFrazer@gmail.com if you have any questions!KeithAFrazer@gmail.com


Download ppt "FACEBOOK API, ANDROID, AND YOU IT DOESN’T HAVE TO BE FRUSTRATING!"

Similar presentations


Ads by Google