fbsdksharedialog

Invalid value found in media: <FBSDKShareVideo>

本小妞迷上赌 提交于 2021-01-29 08:07:45
问题 Xcode 12.2, swift console log : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid value found in media: <FBSDKShareVideo: 0x283f91650> - ( "<FBSDKShareVideo: 0x283f91650>" I want to share Video , URL , Hashtag and text in current logged in user (Facebook App) , What I tried so far is, //I’m downloading file from server. let data = try Data(contentsOf: outputFile) var video = ShareVideo(data: data) if let thumbnail = Functions.videoSnapshot(vidURL: docURL

facebook-android-sdk error: publish_actions being required to post a share dialog

安稳与你 提交于 2020-01-04 05:33:15
问题 I have required publish_actions to my application in order to publish in users wall, but it was denied because (it was said) Facebook does not require publish_actions. But I am trying to share a picture through the following code using Share Dialog: SharePhoto photo = new SharePhoto.Builder() .setBitmap(bitmapLogoPhoto) .setCaption("Teste") .build(); SharePhotoContent photoContent = new SharePhotoContent.Builder() .addPhoto(photo) .build(); //shareDialog.show(photoContent, ShareDialog.Mode

ShareDialog dismiss immediately

我怕爱的太早我们不能终老 提交于 2019-12-12 04:48:03
问题 I 'm trying to add a ShareFacebook button in my android app. The code works when I use my FB account, the one I used with Facebook Developer Console and I can share the link on my FB with no problem. But, when I tested the app with an other FB account, the share dialog appears and disappeares very fast . I have no clue why, any help? Here's my code: facebook.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ShareDialog shareDialog = new ShareDialog