2013-10-05 9 views
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はうまくいく。どうしたの?

+0

エラーを投稿する – sromku

+0

ユーザーのプレビューを生成できませんでした – arvivlx2

+0

問題を解決しましたか? action.setExplicitlyShared(true)を使用する方法を私に教えてください。 – UserJava

答えて

0

私もこの問題に対処していましたが、最終的に回避策が見つかりました。 https://developers.facebook.com/bugs/559486710849474/:代わりに

action.setProperty("explicitly_shared", true); 

action.setExplicitlyShared(true); 

使用を呼び出すので、私はFacebookを利用して、このバグを報告しました。