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

com.facebook.android:facebook-common version 17.0.1 has Device and Network Abuse policy issues that will block publishing of your app to Play Console in the future #1262

Open
5 tasks done
andrea7887 opened this issue Sep 10, 2024 · 4 comments

Comments

@andrea7887
Copy link

Checklist before submitting a bug report

Java version

17

Android version

34

Android SDK version

com.facebook.android:facebook-share:17.0.1

Installation platform & version

gradle

Package

Core & AppEvents

Goals

I would like to submit an app to google play using the share library just to share a link to facebook

Expected results

No errors on android studio

Actual results

com.facebook.android:facebook-common version 17.0.1 has Device and Network Abuse policy issues that will block publishing of your app to Play Console in the future

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE
@angiep125
Copy link

Hi @andrea7887 please consider switching over to using our Intent API share integrations
https://developers.facebook.com/docs/sharing/sharing-to-stories/android-developers

Sharing to feed can be done using a SEND intent. We also have Reels

https://developers.facebook.com/docs/android/sharing-to-reels-facebook/

These flows are actively maintained by our teams. This should also allow you to more flexibility in the UI of the facebook sharing buttons on your application.

Please do let us know if you have any issues integrating.

Taken a look at this previous issue for a solution
#1081 (comment)

Remember to use FileProvider instead of Uri.parse as our docs.

@angiep125
Copy link

https://github.com/paulocoutinhox/android-share-story
See paulo's example

@andrea7887
Copy link
Author

Hi, thank you a lot for your reply. For the SEND intent to share to the feed is ok something like:

            val sendIntent = Intent()
            sendIntent.action = Intent.ACTION_SEND
            sendIntent.putExtra(Intent.EXTRA_TEXT, "$title $link")
            sendIntent.type = "text/plain"
            sendIntent.setPackage("com.facebook.katana")
            val packageManager = requireActivity().packageManager
            if (sendIntent.resolveActivity(packageManager) != null) {
                startActivity(sendIntent)
                return
            }}

@angiep125
Copy link

Yes! that is the correct package name

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

2 participants