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 · 15 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

@cemtufekci
Copy link

that warning still exists on 17.0.2

@Husnainmirza0071
Copy link

Thanks for everything

@Andrew0000
Copy link

Is there a solution? I still have the error in 17.0.2:

image

@ronenfe
Copy link

ronenfe commented Nov 7, 2024

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

Me too, I think I can't use facebook campaigns for the app without it.

@angiep125
Copy link

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.

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

@ronenfe
Copy link

ronenfe commented Nov 8, 2024

I don't use sharing, I use it for advertising on Facebook.

@ronenfe
Copy link

ronenfe commented Nov 8, 2024

I removed the dependency, it seems to build, maybe I will not be able to advertise anymore on Facebook or get the statistics, but it's ok. I don't need to use it anymore.

@Andrew0000
Copy link

In my case I need the SDK for advertising too. Not for sharing.

@Sar777
Copy link

Sar777 commented Nov 11, 2024

bump, any news? it's valid for 17.0.2 as well

@adrianapele
Copy link

I use "com.facebook.android:facebook-login" and have the same issue. excluding the
"com.facebook.android:facebook-common" from the above lib results in compile errors.

@wiggisser
Copy link

wiggisser commented Nov 27, 2024

@angiep125 We only use com.facebook.android:facebook-login:17.0.2 and observe the same issue. Is there a suggested fix/workaround for this? Because the official docs on "Facebook Login" still recommend to use com.facebook.android:facebook-login dependency.

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

9 participants