Skip to content

Android app demo for sharing photo, video, link , any text from the app to Facebook

Notifications You must be signed in to change notification settings

Utshaw/Facebook-Share-Cotent

Repository files navigation

Share photo, video, link , any text from App to Facebook

App Screenshots

AudioBlocks SignUp process
App Main Activity Share Photo Share Any URL

Installation

  • Get started with Facebook App by following this tutorial
  • Provide your Facebook App ID in Manifest.xml file (Replace {APP_ID} with your Facebook App ID )
  • Create a resource file named secret_api_key.xml with following content (Replace {APP_ID} with your Facebook App ID )
<resources>

    <string name="secret_facebook_app_id">{APP_ID}</string>
    <string name="secret_facebook_login_protocol_scheme">fb{APP_ID}</string>

</resources>

Attention

  • setContentTitle , setContentDescription are now deprecated for ShareContent class & doesn't work
  • use setQuote method (setQuote supports multiline, use \n for that)
  • Video upload is not working . Contributions appreciated.

Usage

  • For sharing video from url, follow btnShareLink
  • For sharing photo from url, follow btnSharePhoto
  • For sharing video from device, follow btnShareVideo

Prerequisite:

  • Facebook app must be installed on the device
  • Android version must be >= 4.3

Acknowledgement

YouTube - EDMT Dev

Resources

About

Android app demo for sharing photo, video, link , any text from the app to Facebook

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages