Open rangerhuangruihe opened 4 years ago
hello, check it!
Hi rangerhuangruihe,
We're sorry to have kept you waiting. I've checked your code and it works fine!
Could you give us more information about the way you auth over VK SDK? I'm interested in params you send into VKSdk.login
, especially scopes. Besides, it'll be great if you check your configuration on admins panel and configurations inside your project. Before that please check that your auth was successful and you really have permissions to this photo.
Make sure you specified that information:
com_vk_sdk_AppId
integer resource(in your case <integer name="com_vk_sdk_AppId">3974615</integer>
)Best Regards, Andrew
I use the packagename com.vk.vktestapp and com_vk_sdk_AppId 3974615 of the test demo on com.vk:androidsdk:1.6.9 version, but it get this error response: VKError (API errorVKError (code: 200; ; Access denied)), may i ask if any other package param can I use to test the share funtion in VK SDK? I use such share function in 1.6.9 version:
void shareWithDialog(final Bitmap bitmap, FragmentManager fragmentManager) { VKPhotoArray photos = new VKPhotoArray(); photos.add(new VKApiPhoto("photo-47200925_314622346")); VKShareDialogBuilder builder = new VKShareDialogBuilder(); builder.setText("I created this post with VK Android SDK" + "\nSee additional information below\n#vksdk"); builder.setUploadedPhotos(photos); builder.setAttachmentImages(new VKUploadImage[]{ new VKUploadImage(bitmap, VKImageParameters.pngImage()) }); builder.setAttachmentLink("VK Android SDK information", "https://vk.com/dev/android_sdk"); builder.setShareDialogListener(new VKShareDialog.VKShareDialogListener() { @Override public void onVkShareComplete(int postId) { // recycle bitmap if need } @Override public void onVkShareCancel() { // recycle bitmap if need } @Override public void onVkShareError(VKError error) { // recycle bitmap if need } }); builder.show(fragmentManager, "VK_SHARE_DIALOG"); }