react-native-fbsdk

Share an image with react-native-fbsdk?

六眼飞鱼酱① 提交于 2019-12-13 12:27:29
问题 I'm trying to share an image to Facebook in React Native through the react-native-fbsdk package. I have the following, copied almost completely from the docs, but I can't figure out how to format the imageUrl , I keep getting errors saying the SharingContent is invalid . What am I doing wrong here? const sharePhotoContent = { contentType: 'photo', photos: [ { imageUrl: "./local/image/path.png", userGenerated: false, caption: "Hello World" } ] }; ShareDialog.canShow(sharePhotoContent).then(

FB login - Firebase.Auth() Error: The supplied auth credential is malformed or has expired

社会主义新天地 提交于 2019-12-12 12:00:57
问题 I'm using react-native-fbsdk: 0.8.0, react-native-firebase: ^5.2.2, react-native: ^0.57.4 and Facebook Test User account. This happened so suddenly. Once I sign out from firebase and try to log in again with Facebook. Error: The supplied auth credential is malformed or has expired. [ Remote site 5XX from facebook.com for USER_INFO ]. I had tried AccessToken.refreshCurrentAccessTokenAsync(). But give me Error: Failed to refresh access token. The Facebook token will expire in 60 days. Checked

Getting ReactNative FacebookSDK working

岁酱吖の 提交于 2019-12-12 05:12:13
问题 I'm trying to get the FBSDK running in an iOS ReactNative project. I react-native init AwesomeProject to get a brand new project, follow the React Native FBSDK instructions on github, and I get an error in main.m : thread 1:signal SIGABRT A little Googling leads me here then here which has me add a LSApplicationQueriesSchemes key to my info.plist . Fixing that problem. I then follow the Facebook app setup guide that has me add, among other things, an NSAppTransportSecurity key to my info

React native facebook iOS sdk build failed

て烟熏妆下的殇ゞ 提交于 2019-12-10 12:57:13
问题 I've follow all the guidelines listed on Facebook developer guide for the iOS react native sdk but i'm still unable to build the app. Attached a screenshot of my config and the build log Ld /Users/alaaattya/Library/Developer/Xcode/DerivedData/Alnomad-fcoerljazsnnxbggcygydgyxmimr/Build/Products/Debug-iphonesimulator/Alnomad.app/Alnomad normal x86_64 cd /Applications/MAMP/htdocs/marscodes/alnomad-ios/ios export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode.app/Contents

ProcessReleaseResources

好久不见. 提交于 2019-12-10 03:50:25
问题 I am trying to build my react-native project and using react-native-fbsdk. I am using react-native@0.38.0 and, react-native-fbsdk@0.5.0. When I build my project I got this error on execution screen. **Execution failed for task** ':react-native-fbsdk:processReleaseResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/sathish/Android/Sdk/build-tools/23.0.1/aapt'' **finished with non-zero exit value 1** 回答1: I found the

facebook login manager throws Error: Login Failed

冷暖自知 提交于 2019-12-09 23:58:12
问题 Using the code sample from their github page - LoginManager.logInWithReadPermissions(["public_profile"]).then( (result) => { if (result.isCancelled) { console.log("Login cancelled"); } else { console.log( "Login success with permissions: " + result.grantedPermissions.toString() ); } }, error => { console.log("Login fail with error: " + error); } ); This runs perfectly fine on android but does nothing in ios. I tried LoginManager.logOut() without success. I have double checked my info.plist

How do I set LoginBehaviour when using react-native-fbsdk LoginManager?

試著忘記壹切 提交于 2019-12-07 10:13:38
问题 If I use the LoginButton from react-native-fbsdk the LoginBehaviour seems to be "native" in that the SDK communicates with the installed FB app, sees that I've already granted permissions and just logs me in without showing any dialogs, etc. When I use the LoginManger.logInWithPublishPermissions() mechanism I'm always taken to the brower and a screen that says I've already given permission to my app. I assume I can change this by setting the login behaviour, but I can't figure out how to do

React-native fbsdk build errors

耗尽温柔 提交于 2019-12-06 05:16:40
问题 I am getting the following errors while running the command react-native run-android or ./gradlew build :react-native-fbsdk:generateReleaseResValues UP-TO-DATE :react-native-fbsdk:generateReleaseResources :react-native-fbsdk:mergeReleaseResources :react-native-fbsdk:processReleaseManifest :react-native-fbsdk:processReleaseResources /Users/a/projects/gratisapp/node_modules/react-native-fbsdk/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.3.1/res/values-v24/values

How do I set LoginBehaviour when using react-native-fbsdk LoginManager?

你说的曾经没有我的故事 提交于 2019-12-05 16:10:17
If I use the LoginButton from react-native-fbsdk the LoginBehaviour seems to be "native" in that the SDK communicates with the installed FB app, sees that I've already granted permissions and just logs me in without showing any dialogs, etc. When I use the LoginManger.logInWithPublishPermissions() mechanism I'm always taken to the brower and a screen that says I've already given permission to my app. I assume I can change this by setting the login behaviour, but I can't figure out how to do that successfully. Here's what I've tried import { GraphRequest, GraphRequestManager, LoginManager,

ProcessReleaseResources

一笑奈何 提交于 2019-12-05 03:19:34
I am trying to build my react-native project and using react-native-fbsdk. I am using react-native@0.38.0 and, react-native-fbsdk@0.5.0. When I build my project I got this error on execution screen. **Execution failed for task** ':react-native-fbsdk:processReleaseResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/sathish/Android/Sdk/build-tools/23.0.1/aapt'' **finished with non-zero exit value 1** Sathish Kumar Sundaram I found the solution for that. react-native-fbsdk module was updated a few days ago, causing this