I am using Facebook sdk 4.1.2 to share contents to Facebook . https://developers.facebook.com/docs/sharing/android This is the link i reffered for doing this task And was successfull in sharing a link content in facebook.
shareDialog = new ShareDialog(ShareActivity.this);
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentTitle("Hello Facebook")
.setContentDescription(
"The 'Hello Facebook' sample showcases simple Facebook integration")
.setContentUrl(Uri.parse("http://ramees.com/Uploads/VideoGallery/17_VG/1_Video_Gallery.mp4"))
.build();
shareDialog.show(linkContent);
I have used the above code to post a link content in facebook and it is working successfully.But i didn't find any code to post title and description only without any link content or image. Can anyone help to know how can i do this with Facebook sdk 4.1.2 itself.