react-native-fbsdk

React-native fbsdk build errors

喜夏-厌秋 提交于 2019-12-04 09:55:54
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-v24.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android

Change the FB login button text (react-native-fbsdk)

老子叫甜甜 提交于 2019-12-03 19:55:57
问题 I am using react-native-fbsdk. How can I change the fb login button text from 'Login with facebook' to 'Continue with fb'? The component looks like this, and I can't find a way to change it: <LoginButton style={styles.facebookbutton} readPermissions={["public_profile", 'email']} onLoginFinished={ (error, result) => { if (error) { console.log("login has error: " + result.error); } else if (result.isCancelled) { console.log("login is cancelled."); } else { AccessToken.getCurrentAccessToken()

Native component for “RCTFBLoginButton” does not exist

99封情书 提交于 2019-12-03 19:26:44
问题 im posting here because ive done like 12hours searching and trying things to resolve my issue , but just cant find the solution. Here is a screen of my errors: React native debugger I have followed the facebook developers step for IOS, followed instruction of FBSDK github, i've linked libraries... still have errors.. Hope someone will help me out Regards. 回答1: e1dar answers your question but it was a comment so i'm answering the question as a post! You can install the latest version with this

Ios version of app works, but Android fails due to no suitable constructor found for AccessToken for React Native App

守給你的承諾、 提交于 2019-12-01 23:35:48
问题 As mentioned in the title, the Ios version of this app works fine on a physical device. However, when I try to build it on an android device, I get an error error: no suitable constructor found for AccessToken(String,String,String,<null>,<null>,<null>,<null>,<null>) constructor AccessToken.AccessToken(String,String,String,Collection<String>,Collection<String>,AccessTokenSource,Date,Date,Date) is not applicable (actual and formal argument lists differ in length) constructor AccessToken

How to check if the user is already logged in?

孤街醉人 提交于 2019-12-01 06:53:31
问题 I am complete new to react-native and Facebook sdk So I have followed the tutorial given here and everything works fine, the user is able to log in using facebook. My question is : How do I check if the user is already logged in when he opens the app next time? I thought the callback onLoginFinished is called everytime regardless whether the user has already logged in or not. But that is not the case. If the user is logged in, the onLoginFinished not called. Is there any perticular callback

React Native Facebook Login using official fbsdk

ぃ、小莉子 提交于 2019-11-30 18:00:46
I tried following the starter tutorial by setting up a new React Native Project for iOS. But the loginbutton doesn't seem to be working. Any help is appreciated. Here's the index.ios.js: import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; const FBSDK = require('react-native-fbsdk'); const { LoginButton } = FBSDK; var Login = React.createClass({ render: function() { return ( <View> <LoginButton publishPermissions={["publish_actions"]} onLoginFinished={ (error, result) => { if (error) { alert("login has error: " + result.error); } else if

Cannot resolve symbol ReactApplication/ReactNativeHost

Deadly 提交于 2019-11-30 17:39:05
I have a react native running perfectly on iOS but does not compile in Android studio due to import issues in MainApplication and MainActivity. I followed the React Native FBSDK guidelines. In MainApplication I get "Cannot resolve symbol" on import statements: import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; And the following errors: Error:(7, 8) error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error

Change the FB login button text (react-native-fbsdk)

China☆狼群 提交于 2019-11-30 12:13:27
I am using react-native-fbsdk. How can I change the fb login button text from 'Login with facebook' to 'Continue with fb'? The component looks like this, and I can't find a way to change it: <LoginButton style={styles.facebookbutton} readPermissions={["public_profile", 'email']} onLoginFinished={ (error, result) => { if (error) { console.log("login has error: " + result.error); } else if (result.isCancelled) { console.log("login is cancelled."); } else { AccessToken.getCurrentAccessToken().then( (data) => { console.log(data); console.log(data.accessToken.toString()); } ) } } } onLogoutFinished

Could not find com.android.support:appcompat-v7:25.3.1

天涯浪子 提交于 2019-11-30 06:50:21
I suddenly started getting this error when trying to build. This was all working a few weeks ago with no changes that I know of. The issue seems to be related to react-native-fbsdk , but looking through its build.gradle it does not list support.appcompat-v7.25.x . Any advice? A problem occurred configuring project ':app'. > A problem occurred configuring project ':react-native-fbsdk'. > Could not resolve all dependencies for configuration ':react-native-fbsdk:_debugCompile'. > Could not find com.android.support:appcompat-v7:25.3.1. Searched in the following locations: file:/Users/a/.m2

React Native Facebook Login using official fbsdk

自闭症网瘾萝莉.ら 提交于 2019-11-30 01:39:59
问题 I tried following the starter tutorial by setting up a new React Native Project for iOS. But the loginbutton doesn't seem to be working. Any help is appreciated. Here's the index.ios.js: import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; const FBSDK = require('react-native-fbsdk'); const { LoginButton } = FBSDK; var Login = React.createClass({ render: function() { return ( <View> <LoginButton publishPermissions={["publish_actions"]}