I am trying to use facebook SDK to implement sharing in my android application, and have implemented exactly like the documentation says on the facebook page . I check for the session and the publish_actions permissions before i call the share dialog as below.
if (FacebookDialog.canPresentShareDialog(getApplicationContext(),
FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) {
// Publish the post using the Share Dialog
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setName("Hello Facebook")
.setDescription("The 'Hello Facebook' sample application showcases simple Facebook integration")
.setLink("http://developers.facebook.com/android")
.build();
}
The share dialogbox appears but it is blank without the content i added in .setLink() etc. Just to be sure I wasnt missing out any configurations, I tested the HelloFacebookSample from the facebook SDK samples and that has the same issue. When i click on "Post Status Update" I see an empty share box.
I am running this on a Nexus 4 phone with Android 4.4.2 and the facebook app version 9.0.0.26.28. Is there something I need to do on my setup to make it work. The strange thing is I do remember seeing the dialog box being populated earlier, so there must be something I have done to break it.
Any help will be appreciated, I have battered my head on this for over a week.