Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Android Sharing Photo and Text together using ShareOpenGraphObject  RSS feed

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", "")
.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]
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
ScroogeXHTML 7.2 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!