facebook-android-sdk
Is it possible to change Facebook login button image in Facebook Android SDK3?
I ended up overriding the text to be empty string and then defining the setBackgroundResource of the button to my image (didn’t need the dynamic login/logout text functionality) <com.facebook.widget.LoginButton xmlns:fb=”http://schemas.android.com/apk/res-auto” android:id=”@+id/login_button” android:layout_width=”249dp” android:layout_height=”45dp” android:layout_above=”@+id/textView1″ android:layout_centerHorizontal=”true” android:layout_gravity=”center_horizontal” android:layout_marginBottom=”30dp” android:layout_marginTop=”30dp” android:contentDescription=”@string/login_desc” android:scaleType=”centerInside” fb:login_text=”” fb:logout_text=”” /> And in code I defined the background resource : final LoginButton button … Read more
Facebook SDK for Android duplicate support library on dependencies
It seems like the different projects are using two separate support libraries and therefore the checksum is different. You must repeat this for both the Facebook SDK project and the app you are building. What I do when I get this error is: Right click the project. Hover over Android Tools. Click on “Add support … Read more
When to request permissions with Facebook’s new Android SDK 3.0?
I was able to get it to work. It’s a modification of your Version 2 sample. The link Jesse provided also helped a ton. Here is the code I run through when authenticating a user: private void signInWithFacebook() { mSessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) … Read more
ASP.NET Web API and Identity with Facebook login
I don’t know if you ever found a solution, but I’m trying to do something similar and I’m still putting the pieces of the puzzle together. I had tried to post this as a comment instead of an answer, as I do not provide a real solution, but it’s too long. Apparently all of the … Read more
Android – Facebook SDK 3 – How to login programmatically without LoginButton
Is what you posted your entire Activity? You also need to override onActivityResult, and pass the values to Session.getActiveSession().onActivityResult(…). Otherwise, the Session won’t know that the user has authorized your app, and that’s why you see the error (Session thinks that there’s still a pending auth request, which is why you can’t reauthorize for publish).
Unable to resolve dependency Android Studio 3.0
After some research I have solved this issue. Step 1-: I disable the Gradle offline work in settings. File > Settings > Build, Execution, Deployment > Gradle > Uncheck Offline Work Step 2-: Then, I just changed compile ‘com.facebook.android:account-kit-sdk:4.+’ to api ‘com.facebook.android:account-kit-sdk:4.+’ I don’t know exactly why it’s work. I see api in docs Reference … Read more
Something similar to Cocoa Pods and Bundler for Android (for dependencies)?
Gradle + Maven Central seems to be the Android equivalent.
FacebookSdk.sdkInitialize (Context) is deprecated
From the documentation about upgrading SDK: The Facebook SDK is now auto initialized on Application start. If you are using the Facebook SDK in the main process and don’t need a callback on SDK initialization completion you can now remove calls to FacebookSDK.sdkInitialize. If you do need a callback, you should manually invoke the callback … Read more