Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK show WebView login instead of bring the Facebook App to share my content #1250

Open
5 tasks done
kevin-zqw opened this issue Jun 14, 2024 · 0 comments
Open
5 tasks done

Comments

@kevin-zqw
Copy link

Checklist before submitting a bug report

Java version

11.0.22

Android version

API 33, Android 13

Android SDK version

16.1.3

Installation platform & version

Gradle 6.7.1

Package

Share

Goals

I want to share link/image/video from my App, Facebook SDK should bring FB App to share

Expected results

FBSDK bring the FB App to share my link/image/video

Actual results

FBSDK show WebView login instead of bring the Facebook App

Steps to reproduce

  1. Force quit the Facebook App in the Android system
  2. Run my app, call ShareDialog to share my content

FBSDK will show WebView login page in my App, it can't bring the Facebook App to share my content

Code samples & details

ShareDialog messageDeliverDialog = new ShareDialog(context);
messageDeliverDialog.registerCallback(mCallbackManager, new FacebookCallback<Sharer.Result>() {
    @Override
    public void onSuccess(Sharer.Result result) {
    }

    @Override
    public void onCancel() {
    }

    @Override
    public void onError(@NonNull FacebookException error) {
    }
});

if (messageDeliverDialog.canShow(shareContent)) {
    messageDeliverDialog.show(shareContent);
}
Playgirlkaybraz11 referenced this issue Jun 19, 2024
Reviewed By: mingcaozhang

Differential Revision: D40125158

fbshipit-source-id: 58e7d605b63f24d0e8c35abb046d0ebae2edf9ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant