下面的代码打开了Facebook动作的共享对话框,但是它设置过去“看过”动作的问题,如何在发布时设置为“观看”?
ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
.putString("og:type", "video.movie")
.putString("og:title", aTitle)
.putString("og:url", aURL)
.build();
// Create an action
ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
.setActionType("video.watches")
.putObject("movie", object)
***The period in Seconds before "Watching" turns to be "Watched"***
.putInt("expires_in", 60)
.build();
ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
.setPreviewPropertyName("movie")
.setAction(action)
.build();
ShareDialog.show(mMainActivity, content);