facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

Question about sharing text on the Facebook #756

Open ajaykumar97 opened 4 years ago

ajaykumar97 commented 4 years ago

Question

I have 2 questions. I am trying to share the PlayStore link of my application and some text along with the url. I am able to share the URL with the help of the share dialog, but I am not able to share the text along with the URL. I have done some research about it and came to know that sharing text is no longer supported by the Facebook.

  1. Can anyone guide me upon this, if it is possible to share the text along with the URL on the Facebook or not? If yes, then how?

  2. I am only using the ShareDialog from the react-native-fbsdk. For this SDK to be able to run, I need to create an application on the facebook developer console to get the Application Id, otherwise, the SDK itself throws an error while making the build. Do I need to submit my app for review on Facebook developer console?

To Reproduce

Expected Behavior

I should be able to share the text and the URL on the facebook.

Code Example

Environment

System: OS: macOS 10.15.4 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 72.24 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.2.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 28, 29 Build Tools: 28.0.3, 29.0.3 System Images: android-29 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6308749 Xcode: 11.1/11A1027 - /usr/bin/xcodebuild Languages: Java: 1.8.0_252 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: react-native: Not Found

creativemind1 commented 4 years ago

1) As far as I know there is a policy for facebook that you cannot share your text over there.