User has to click the post button in the share dialog every time they complete a level.I need to eliminate this hardship for user. As of now I have created a custom story and requesting user to click post every time.
Question :
I heard of frictionless FB post for the Open graph stories. Is it possible in android ?
If frictionless FB post is available in android, could you please point be the correction in my code that I have pasted below.
If frictionless FB post is available in android, What is the permission that I need to get from user ?
Code
ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
.putString("og:type", "puzzlegameballmania:level")
.putString("og:title", "Cleared Level-1 !!!")
.putString("og:image", "http://ixxxxwsz.jpg")
.putString("og:url", "https://play.google.com/store/apps/details?id=com.gamxxxxx.android")
.putString("og:description", "Color of the balls matters more. Lets break the goal and go higher !")
.putString("puzzlegameballmania:level:title", "LEVEL 1")
.build();
// Create an action
ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
.setActionType("puzzlegameballmania:clear")
.putObject("puzzlegameballmania:level", object)
.build();
// Create the content
ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
.setPreviewPropertyName("puzzlegameballmania:level")
.setAction(action)
.build();
ShareDialog.show(AndroidLauncher.this, content);