我想分享圖像從我的Android應用程序在Facebook上,我還沒有完成yet.I想確定它是否共享Facebook上的圖像正確。我寫的代碼共享圖像,我認爲它但是,當我運行我的應用程序時,臉書問我是否接受我的應用程序來獲取我的信息,這是迄今爲止工作良好。但只是在sharePhoto之前...有這個錯誤publish_actions權限是missing.Does它意味着我有釋放我的應用程序使用Facebook嗎?不能我使用我的管理員或Facebook的測試人員帳戶分享圖像?我只是想知道,如果我的應用程序共享圖像properly.ty 這是我的代碼安卓Facebook的sdk共享圖像
permissionNeeds= Arrays.asList("publish_actions");
Bitmap image = BitmapFactory.decodeResource(getApplicationContext().getResources(),
R.mipmap.ic_launcher);
SharePhoto photo = new SharePhoto.Builder()
.setBitmap(image)
.setUserGenerated(true)
.build();
SharePhotoContent content = new SharePhotoContent.Builder()
.addPhoto(photo)
.build();
ShareApi.share(content, null);
如何讓我的應用開發者模式 –