facebook-sdk-4.0

facebook android sdk 4.0 , way to unregister callback from LoginManager

血红的双手。 提交于 2019-12-10 16:27:51
问题 I am using the facebook sdk 4.0 inmy android app. I have an Activity whose functionality is to post some message to facebook ( this is not my main Activity of my app ) i am doing the following to login to facebook and then post the message FacebookSdk.sdkInitialize(this.getApplicationContext()); callbackManager = CallbackManager.Factory.create(); LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult

Android Facebook SDK - Share dialog does not respond to cancel callback

梦想的初衷 提交于 2019-12-10 15:55:34
问题 I'm working with Facebook sdk 4.0 on my android app and I found this problem: -when I share a post, I can see the facebook interface and I can post it and cancel it perfectly. I registered the callbacks, but if I press the cancel button, the onCancel callback is not called, the post is not published, but the onSuccess callback is called. However, if I touch the close button, everything works ok. Here is my code: private void fbOnShare(){ ShareLinkContent shareContent = new ShareLinkContent

Android Facebook Login : How to check login using LoginManager without having LoginButton in XML

假如想象 提交于 2019-12-10 10:14:27
问题 I have done facebook login check in my android app using LoginButton, but I want to check using LoginManager. How can I modify my code to work that way? LoginButton loginButton = (LoginButton) findViewById(R.id.fb_login_button); loginButton.setReadPermissions("user_friends"); shareDialog = new ShareDialog(this); //Login Callback registration LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult

FBSDKCoreKit/FBSDKCoreKit.h file not found error react-native ios

风格不统一 提交于 2019-12-09 13:18:57
问题 Try to install Facebook SDK to react natiove IOS. I have FBSDKCoreKit/FBSDKCoreKit.h file not found error and spent several hours trying to solve it with different solutions, but can't understand whats going wrong(( Any ideas? react-native 0.40 react-native-fsdk 0.5.0 facebook sdk: 4.19.0 回答1: EDIT: I recommend using CocoaPods so you don't need to download/update the sdk manually. If you downloaded the sdk manually, try this: Open your ~/Documents/FacebookSDK folder; Check if it has these

Could not initialize LoginButton Facebook-sdk for android

血红的双手。 提交于 2019-12-09 03:06:48
问题 im working on an android project an i want to put a Facebook Login feature, i added the Facebook sdk Correctly but i could not initialize LoginButton **java.lang.NoClassDefFoundError: Could not initialize class com.facebook.login.widget.LoginButton** at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance

After update iOS 9 and Facebook sdk 4.6 the login window not open

感情迁移 提交于 2019-12-08 22:01:29
问题 I update my Xcode to 7 , and Facebook to 4.6 sdk. this My warning : Warning: Attempt to present <FBSDKContainerViewController: 0x159337700> on <UIAlertController: 0x159262700> whose view is not in the window hierarchy! in My project the BitCode is NO - because if I turn it to Yes I got this Error : ld:'/Users/MyName/Desktop/MyProjectName/ProjectName/ProjectName/Resources/Frameworks/Fabric.framework/Fabric(Fabric.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode

Crash in openURL: Possible Facebook SDK bug in iOS 9

你。 提交于 2019-12-08 19:28:44
问题 Context I am using the FBSDKLoginButton with my app. I am on Xcode 7.0 and my iPhone is running iOS 9 beta 3. I followed every step showed by Facebook (creating the app, etc) and followed the steps for adding the button as in https://developers.facebook.com/docs/facebook-login/ios#login-button. As I am on iOS 9, I had to add some minor changes to the info.plist file to enable cross-app opening: <key>LSApplicationQueriesSchemes</key> <array> <string>fbauth</string> </array> and since the

Cant import Request, Session and response Facebook SDK 4.0. [Egregious Documentation]

一曲冷凌霜 提交于 2019-12-08 09:40:16
问题 I am using the Facebook SDK 4.0 and I want to post on users wall using the OpenGraph API. I have defined the Action as: Celebrating The object as Milestone Now when in the Facebook Dev console I click on get code and switch to Android I get the following snippet: Request request = new Request( Session.getActiveSession(), "me/objects/friendsampleapp:milestone", params, HttpMethod.POST ); Response response = request.executeAndWait(); Here I cant get options to import Response, Request and

[BFTask isFaulted]: unrecognized selector sent to instance error

风格不统一 提交于 2019-12-08 08:51:11
问题 Updated to Parse SDK 1.7.1 with Bolts 1.1.4 and using the new and latest Facebook SDK. Every time I login the user I get the following error: [BFTask isFaulted]: unrecognized selector sent to instance error. I'm able to login the user, the user's info is store in parse, but not sure how to resolve this exception. Anyone else having this problem? 回答1: Had this problem also. I copied the Parse Bolts framework to the project directory. Referencing didn't do it. Same for Parse FacebookutilsV4.

Firebase Auth creating duplicate users for same email

浪尽此生 提交于 2019-12-08 04:12:53
问题 When a user first logs in through Facebook on Firebase Auth, duplicate users with unique UID's are created. The peculiar issue is that I implemented login for this app months ago. An unrelated problem caused me to change my Firebase app. Since then new logins create duplicates. This is very hard for me to solve as the code I have implemented for login uses Facebook SDK and theres not much revealing whats under the hood. Also Firebase has an option that prevents users from creating duplicate