Created
May 30, 2017 10:43
-
-
Save mocovenwitch/c9566fbbf0c6570207fd1e8173970e75 to your computer and use it in GitHub Desktop.
Share link in Facebook post without integrate with Facebook sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/34618514/share-text-via-intent-on-facebook-without-using-facebook-sdk | |
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); | |
sharingIntent.setType("text/plain"); | |
sharingIntent.putExtra(Intent.EXTRA_TEXT, "http://www.google.com"); | |
startActivity(Intent.createChooser(sharingIntent, "Share via")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment