facebook-login

Facebook Login button for Swift

眉间皱痕 提交于 2019-12-20 09:42:47
问题 In Xcode if I create a UIView and then add the custom class as FBSDKLoginButton , when I click it leads me through the Facebook login and then returns me to the same page as the FBSDKLoginButton but instead of saying login button it says log out now. How would I go about making that when the login button is clicked it lead to a new view? I downloaded the Facebook SDK through cocoapods and its my first time working with it so I am confused about this. Thanks for the help! 回答1: One option would

FB login callback function not responding if user is already logged in facebook

南楼画角 提交于 2019-12-20 09:37:33
问题 I am using fb connect using js. This is my code: <script> window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxxxxx', status : true, cookie : true, xfbml : true, oauth : true }); FB.Event.subscribe('auth.login', function(response) { obj=response.authResponse; token=obj.accessToken; setCookie("access_token_fb", token, '2'); window.location.reload(); },true); }; (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id =

Firebase UI - facebook,google and email login not working

微笑、不失礼 提交于 2019-12-20 07:55:42
问题 I'm using firebase ui in my app for login. everything works fine when i run it in debug mode - no errors at all. I'm running it through my cellphone and it works fine! My problem starts when i upload my app to play store. When a user try to log in with facebook it tells the user that the hash key does not match to any stored hashes. I checked few times in Facebook Developers and in my Android Studio and its the same hash key. I also have "Developer error" when i try to log in with Google. I

Can't get FB profile picture with Firebase

自闭症网瘾萝莉.ら 提交于 2019-12-19 12:00:45
问题 I cannot get user's Facebook profile picture into my imageView. I am trying to get with Picasso library. Have an idea to solve that? Here is my codes. Thanks in advance! R.string.facebook_provider_id= "facebook.com" Error: FATAL EXCEPTION: main Process: com.example.yunus.ototakip, PID: 3045 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.yunus.ototakip/com.example.yunus.ototakip.Hesabim}: java.lang.IllegalArgumentException: Target must not be null. Hesabim.java

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

风格不统一 提交于 2019-12-19 11:17:07
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

孤人 提交于 2019-12-19 11:17:01
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

Getting facebook public profile of a person in ios app

别等时光非礼了梦想. 提交于 2019-12-19 04:18:19
问题 I am working on an ios app which requires Facebook Login.I have successfully implemented the login process.But now I am not able to find that how and where can i get the user's profile information like first name,last name, Profile Pic etc...My app has permissions to access firstName,lastName,Profile pic and Email. 回答1: Below is the code for getting person public_profile using latest Facebook SDK v4.0.1. You need to use FBSDKProfile to get person profile. -(void)viewDidLoad{ FBSDKLoginButton

How to change the height of the 'Log in with Facebook' button?

为君一笑 提交于 2019-12-18 12:43:23
问题 I already tried several answers I could find but none of them worked with the latest Facebook Android SDK version 4.0. How can I change the layout height with the latest SDK? 回答1: Just set paddingTop and paddingBottom. It works for me. <com.facebook.login.widget.LoginButton android:id="@+id/login_facebook_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="15dp" android:paddingBottom="15dp" android:layout_marginRight="30dp" android:layout

Xcode 9 : Module compiled with Swift 3.1 cannot be imported in Swift 4.0

大兔子大兔子 提交于 2019-12-18 10:13:09
问题 After updating to Xcode 9, I tried to build one of my projects. I use the FacebookLogin pod. I have a compiler error in FacebookLogin/LoginButton.swift @testable import FacebookCore ❌ Module compiled with Swift 3.1 cannot be imported in Swift 4.0 In my target's build settings, the Swift language version is set to Swift 3.2 . I guess I need to wait for Facebook to update their pod ? Or any other suggestion ? Thanks ! 回答1: Update: Solution also tested and working in Swift 5 and Xcode 11.

Facebook PHP SDK - Login helper returns error

拈花ヽ惹草 提交于 2019-12-18 09:44:30
问题 i have created a app witch are using facebook as a login opportunity. My APP worked public fine 1 day ago, but today it started getting this error when my users are logging in: Graph returned an error: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. My code looks like this: <?php require 'vendor/autoload.php'; if(!session_id()) { session_start(); }