我正在运行android facebook SDK示例HelloFacebookSample(sdk-version-3.19),修改后打印出postID
postId总是空的,任何想法为什么?
@@ -32,7 +32,9 @@ import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
+
import com.facebook.*;
+import com.facebook.android.Facebook;
import com.facebook.model.GraphObject;
import com.facebook.model.GraphPlace;
import com.facebook.model.GraphUser;
@@ -93,6 +95,8 @@ public class HelloFacebookSampleActivity extends FragmentActivity {
@Override
public void onComplete(FacebookDialog.PendingCall pendingCall, Bundle data) {
Log.d("HelloFacebook", "Success!");
+ String postId = FacebookDialog.getNativeDialogPostId(data);
+ Log.i("dialogCallback", "::enclosing_method:" + " postId="+ postId );
}
};