11
私はOpenGraphのアクションをニュースフィードに取り込もうとしています。そのために、ExplicitlyShared
機能をFacebookアプリケーションのOpenGraphアクション設定に追加する必要があることを知りました。しかし、私のコードに入れたときのように:facebook 3.5sdk open graph明示的に共有する
OpenGraphObject model = OpenGraphObject.Factory.createForPost("origame_app:model");
model.setProperty("title", modelname);
model.setProperty("url", "http://samples.ogp.me/1386546688246429");
model.setProperty("description", modeldesc);
Bitmap bitmap = decodeSampledBitmapFromUri(filepath[position], 500, 500);
List<Bitmap> images = new ArrayList<Bitmap>();
images.add(bitmap);
OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class);
action.setProperty("model", model);
action.setExplicitlyShared(true);
@SuppressWarnings("deprecation")
FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(this, action, "origame_app:fold", "model")
.setImageAttachmentsForObject("model", images, true)
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
私はエラーが発生します。しかし、そうでなければOpenGraphはうまくいく。どうしたの?
エラーを投稿する – sromku
ユーザーのプレビューを生成できませんでした – arvivlx2
問題を解決しましたか? action.setExplicitlyShared(true)を使用する方法を私に教えてください。 – UserJava