fbsdk

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()

Invalid iOS Bundle [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-03 16:22:42
问题 This question already has answers here : React Native EXPO Apple upload fail [closed] (3 answers) Closed 10 months ago . This bundle is invalid - The Info.plist file for /Payload/xxx.app/Frameworks/FBSDKCoreKit.framework/FacebookSDKStrings.bundle is missing or could not be read. Invalid Bundle - The bundle at '/Payload/xxx.app/Frameworks/FBSDKCoreKit.framework/FacebookSDKStrings.bundle' does not contain a bundle executable. I'm at the wits end now. I've spent over 6 hours trying to figure

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

FB SDK produces a PHP Fatal error

别说谁变了你拦得住时间么 提交于 2019-12-01 14:21:25
问题 First noticed [27-Mar-2017 17:47:16 GMT+0] a FB SDK integration that worked very well allowing people to login to our site via their Facebook account just stopped working. The server logs show the following error PHP Fatal error: Cannot use object of type stdClass as array in fb-sdk/FacebookRedirectLoginHelper.php on line 191 We have not done any relevant code change that should have initiated it. Have we missed an upgrade? 回答1: Suggested fix for line 191-193: if (isset($response->access

Facebook login - stays at white web page SWIFT

孤街醉人 提交于 2019-12-01 06:07:45
In my LoginViewController, I implemented the FBSDKLoginButtonDelegate and imported the FBSDKLoginKit & FBSDKCoreKit. My code in viewDidLoad is as appears: //setting up facebook login button var facebookLogin = FBSDKLoginButton() //want this button to conform to this protocol facebookLogin.delegate = self facebookLogin.readPermissions = ["public_profile", "email", "user_friends"] facebookLogin.frame = CGRectMake(20, 359, 335, 30) self.view.addSubview(facebookLogin) Here's the code for the button: public func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result:

Facebook login - stays at white web page SWIFT

妖精的绣舞 提交于 2019-12-01 04:44:14
问题 In my LoginViewController, I implemented the FBSDKLoginButtonDelegate and imported the FBSDKLoginKit & FBSDKCoreKit. My code in viewDidLoad is as appears: //setting up facebook login button var facebookLogin = FBSDKLoginButton() //want this button to conform to this protocol facebookLogin.delegate = self facebookLogin.readPermissions = ["public_profile", "email", "user_friends"] facebookLogin.frame = CGRectMake(20, 359, 335, 30) self.view.addSubview(facebookLogin) Here's the code for the

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

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"]}