I am getting the following error when trying to post an Open Graph story.
Error{FacebookServiceException: httpResponseCode: -1, facebookErrorCode: 1611072, facebookErrorType: null, message: Action
Requires At Least One Reference: The action you're trying to publish
is invalid because it does not specify any reference objects. At least
one of the following properties must be specified: victory.
I did not find anything about this property victory in the documentation.
The code I am using to post the story:
ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
.putString("og:type", "games")
.putString("og:title", "<Title>")
.putString("og:url","<website>")
.putString("og:image","<image link>")
.putString("og:description", "Teste")
.build();
ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
.setActionType("games.celebrate")
.putObject("games", object)
.build();
ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
.setPreviewPropertyName("games")
.setAction(action)
.build();
ShareDialog.show(thisActivity, content);
How can I make it work?