FacebookDialog exchange OpenGraphObject rejects

I am trying to implement a sharing dialog, but I have a strange problem. The dialog displays fine, but after a few seconds it disappears. I am using a Fragment and the dialog appears after clicking the ActionBar icon. This is the code I'm using:

OpenGraphObject ogObj = OpenGraphObject.Factory.createForPost("app-namespace:object");
ogObj .setProperty("title", "My title!");
ogObj .setProperty("description", "Lorem ipsum dolor sit amet.");

OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class);
action.setProperty("object", ogObj);

FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(getActivity(), action, "app-namespace:action", "object")
                    .build();
uiHelper.trackPendingDialogCall(shareDialog.present());

      

Also, I have these 2 warnings on logcat:

1) Tracking a new application call while waiting; cancel the waiting call.

2) Warning: Request without a session requires a token, but no app id or client token.

Any thoughts?

Thank you in advance

+3


source to share





All Articles