facebook-android-sdk

Android Studio Gradle error “Multiple dex files define…”

早过忘川 提交于 2019-11-27 03:20:53
问题 My Project was working fine, when I have added facebook sdk into my project I have an error like this, I have tried so many ways to fix this, but I didn't. What should I do? Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: bolts/AggregateException.class My App gradle is below apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion '21.1.2' defaultConfig { applicationId "com.example

How to programmatically log out from Facebook SDK 3.0 without using Facebook login/logout button?

ぐ巨炮叔叔 提交于 2019-11-27 02:53:26
The title says it all. I'm using a custom button to fetch the user's facebook information (for "sign up" purposes). Yet, I don't want the app to remember the last registered user, neither the currently logged in person via the Facebook native app. I want the Facebook login activity to pop up each time. That is why I want to log out any previous users programmatically. How can I do that? This is how I do the login: private void signInWithFacebook() { SessionTracker sessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() { @Override public void call(Session session,

WebApi ASP.NET Identity Facebook login

瘦欲@ 提交于 2019-11-27 02:44:28
In the facebook authentication flow for asp.net identity, the facebook oauth dialog appends a code rather than access token to the redirect_url so that the server can exchange this code for an access token via http://localhost:49164/signin-facebook?code=...&state=... . My problem is that my client is a mobile app which uses the facebook sdk and that straight away gives me an access token. Facebook says using the sdk always gives you an access token so can I straight away give web api the access token? I understand this is not very secure but is it even possible? I don't know if you finally

How to send a FQL query with the new Android SDK

那年仲夏 提交于 2019-11-27 02:20:45
问题 I've been searching over the developers.facebook website looking for a way to use the new SDK and send FQL queries but it seems like everything has changed and the documentation is talking about all sorts of other ways to request me or friends but not specific information such as are those friends using my app or not? so I wrote down a nice FQL query select uid, name, pic_square, is_app_user from user where uid in (select uid2 from friend where uid1 = me()) and now, all I have to do is run it

Facebook authentication without login button

萝らか妹 提交于 2019-11-26 23:58:19
I have followed some Facebook API 3.0 tutorials, including the Login/Logout and the Publish To Feed examples. So the login works this way: App opens, shows a fragment which displays a login button User clicks login, the authentication is done via the referenced FacebookSDK library (com.facebook.widget.LoginActivity) and the provided code using sessions. User is redirected to next screen I don't want to make the user to login this way. I want them to use my app without any login/registration, then if they click on a facebook specific feature e.g. share a note on Facebook, then the app should

Get Read and Publish Permissions in one request

依然范特西╮ 提交于 2019-11-26 23:14:18
问题 Before you all say it's not possible, open up the Spotify app and hit the signin with Facebook button. I'm wondering how they did it, and how I can get "publish_stream" and basic permissions/email in one request. Also, is it possible for me to reopen a Facebook session using the Facebook SDK if I have certain info from the last session (last time they used the app)? EDIT -SCREENSHOTS BELOW FOR THE MUSICALLY AVERT 回答1: What ever you saw on Spotify is not the outcome of publish_stream .What

How to Integrate Facebook Connect with Android

拟墨画扇 提交于 2019-11-26 23:07:11
问题 How to integrate Facebook Connect and API with Android Application? 回答1: The official Facebook SDK for Android is now available here. You can read the Facebook official announcement here. It's still rather rough around the edges. 回答2: Check this link,it will help u for your queries http://github.com/facebook/facebook-android-sdk/ this may also help http://developers.facebook.com/blog/post/385 回答3: Everything you need is here http://developers.facebook.com/docs/mobile/android/build/ Included

Facebook Integration in Android Application

心已入冬 提交于 2019-11-26 22:25:01
问题 I had integrated facebook in my android application . Generate key using debugkeytool and it works fine on both emulator and real device. Now i have to make release apk file and i had created keystore using eclipse android tool to export signed application package . And using this keystore i had generated new key hash for facebook and set it on facebook developers site. but still i am not able to post on facebook wall after signing my app with my own created keystore. I had check all the

java.exe finished with non-zero exit value 2 when using Facebook SDK

我只是一个虾纸丫 提交于 2019-11-26 21:29:36
问题 When I try to compile my app I get a following error Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_60\bin\java.exe'' finished with non-zero exit value 2 If I get rid of Facebook Android SDK it compiles without a problem. My build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 21 //tried 19 and 22 changing

When to request permissions with Facebook's new Android SDK 3.0?

空扰寡人 提交于 2019-11-26 21:27:24
With Facebook's new Android SDK 3.0 (that was released a few days ago), the process of authentication has changed. So how do you request a read permission such as "friends_hometown"? The following code is how I am trying to do it - but I'm quite sure it's not the way you should do this: Version 1: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Session.openActiveSession(this, true, new Session.StatusCallback() { // start Facebook login @Override public void call(Session session, SessionState state, Exception exception) { // callback for session state