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
android facebook-graph-api facebook-android-sdk


source to share


No one has answered this question yet

Check out similar questions:

4
facebook shareDialog when app \ not installed - strange behavior?
2
Actionbar menu not showing for android 4.X but works on 2.2
1
Android - Clear Facebook Access Token
1
How to use Google Map V2 MapView for Android to display action bar?
0
How to insert EditText between multiple TextViews in Android?
0
How can I dismiss the DialogFragment in the onStart () of an activity?
0
ActionBarCompat: How to hide / remove the "header" of the "main" activity?
0
Action bar lost after rotating in toolbar dialog
0
Android - Opens Share Open Chart Dialog Box, Then Crashes
0
How to handle link and number from plain text



All Articles
Loading...
X
Show
Funny
Dev
Pics