在使用Facebook sdk时遇到问题:com.facebook.android:facebook-share:[4,5)
图片在台式机上运行良好,但在移动设备上缩小到较小的尺寸。
这是在Android中使用Facebook App的视图
这是使用谷歌浏览器的视图
这是我的ShareOpenGraphObject
SharePhoto photo = new SharePhoto.Builder()
.setBitmap(ViewUtil.getViewBitmap(view))
.build();
ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
.putString("fb:app_id", view.getContext().getString(R.string.FACEBOOK_APP_ID))
.putString("og:type", "website")
.putString("og:title", title)
.putString("og:description", description)
.putString("og:url", link)
.putPhoto("og:image", photo)
.putInt("og:image:width", 600)
.putInt("og:image:height", 315)
.build();
ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
.setActionType("apps.saves")
.putObject("website", object)
.build();
ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
.setPreviewPropertyName("website")
.setAction(action)
.build();
ShareDialog shareDialog = new ShareDialog((Activity) view.getContext());
shareDialog.show(content, ShareDialog.Mode.AUTOMATIC);
我认为我做错了,请帮助我