• Post Reply Bookmark Topic Watch Topic
  • New Topic

Android Sharing Photo and Text together using ShareOpenGraphObject  RSS feed

navin rajpandey
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to post image and text together thorough my android app but the share dialog appears with post link disabled and even the window disappears itself after few seconds with error: Failed to generate preview for user.. something wrong in my code?

SharePhoto photo1 = new SharePhoto.Builder()

ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
.putString("og:type", "healthsynergy.photo")
.putString("og:title", "food")
.putString("og:description", "This is a wonderful food.")

ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
.putObject("photo", object)
ShareOpenGraphContent content1 = new ShareOpenGraphContent.Builder()

[Thumbnail for XV429.png]
[Thumbnail for JHqli.png]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!