facebook-android-sdk

Get friend list facebook 3.0

为君一笑 提交于 2019-11-28 16:33:21
I'm trying to obtain my friend list from facebook using new SDK(3.0). I'm facing problems related to what kind of params I need to insert in a Bundle and how to use newMyFriendRequest and GraphAPI. I didn't find on facebook documentation a place about what kind of field does we have to use. Based on GraphExplorer I insert in my Bundle the key "fields" with this string "id,name,friend" as a value. The code below shows what I'm doing right now. After I get My picture and name I execute newMyFriendRequest. I believe it uses GraphAPI by default. I've seen here on StackOverflow some posts related:

Facebook authentication to my server using Android

≡放荡痞女 提交于 2019-11-28 16:00:13
I'm building an application with the following blocks: Android - Client Side, Java Servlets - Sever Side, Facebook app - used in order to authenicate users and work with their data. My Problem is the following: I would like to authenticate my users via facebook (such as a request sent from the android client using facebook-android-sdk to facebook) but then I would like to send requests to my server (which is implemented by servlets) and to validate somehow that the user sending the request is authenticated to facebook and my application. So these are the steps: user X is authenicated to

Access token removed in Facebook Android SDK 4.0

耗尽温柔 提交于 2019-11-28 12:16:57
I am using Facebook Android SDK 4.0 (newly updated version). I logged in to my app after the initial setup. Then I exited from my app. If again start my app, user is not in the logged in state. When I use debugger, it shows "ACCESS TOKEN REMOVED". What is the procedure to check whether the user is in logged in state using Access Token? I have tried new log in method (according to newer version 4.0) in which they mentioned about log in process. I have done it. But whenever I open up Access Token state is "ACCESS TOKEN REMOVED". I checked App id, Package name, Activity name in dash board

Facebook SDK 3.7 for Android request email permission

拟墨画扇 提交于 2019-11-28 11:48:29
I am using Facebook SDK for Android to allow users to register and use app. I want to get some basic info about user like user name and email. Anyway, I have problem because I get null pointer exception when trying to get user email. String email = user.getProperty("email").toString(); I assuming that I get this error because I did not request for email permission. How I can do that? Here is the full code : public class RegisterActivity extends ActionBarActivity{ Button btnFacebook; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

android facebook sdk v4.0 not working

假如想象 提交于 2019-11-28 11:14:26
Using Eclipse. SDK Manager is up to date. How ever when I import the facebook SDK to my workspace. It throws lots of error. facebook-android-sdk-4.0.0\facebook\res\values\messenger_button_styles.xml:66: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'. I removed it from values. The import android.support cannot be resolved I added support v4 '<>' operator is not allowed for source level below 1.7 If i change the complier it gives kitkat below error. When I do insert inferred type arguments It goes away. Afterwards it gives bolts library error. Then I

Android Studio Gradle error “Multiple dex files define…”

半腔热情 提交于 2019-11-28 10:02:11
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.myproject" minSdkVersion 9 targetSdkVersion 21 versionCode 1 versionName "1.0" multiDexEnabled = true }

Seem doesn't get Facebook SDK resource when using Facebook Android SDK in IntelliJ IDEA 12

孤街醉人 提交于 2019-11-28 06:06:46
According to the article Add facebook SDK to IntelliJ Android project? , I choose to add the " facebook.jar " file as a Module in the " Dependencies " section in the project structure. The compile process works fine. However, when I trying to using "Session Login" to login in facebook, I got the runtime error message like this: 02-06 20:15:56.648: ERROR/AndroidRuntime(5891): FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.facebook.android.R$layout at com.facebook.LoginActivity.onCreate(LoginActivity.java:55) at android.app.Activity.performCreate(Activity.java:4524) at android.app

Post to facebook after login fails Android

陌路散爱 提交于 2019-11-28 02:28:41
In my postToFacebook() method. I checked if the user is connected if it is i post a link on my wall. When the user is not signed in, The facebook sdk login progress pop up and i login successfully using my credentials. My problem is after login i need to postonWall directly but the postOnWall is not posting to facebook. If i am already login and i post, then it is posted. Any help please. Here is my full postToFacebook code. public void postToFacebook(){ mAsyncRunner = new AsyncFacebookRunner(facebook); loginToFacebook(); } /** * Function to login into facebook * */ public void loginToFacebook

Error on using proguard with Android Facebook sdk 3.0

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 23:15:15
问题 Warning: I removed a lot of "old text" to keep the question more clean. Just check the history if needed. I'm using proguard to both shrink and obfuscate an app that uses the facebook sdk 3.0 (I'm using the sdk-version-3.0.2.b tag). I'm not using a JAR file. Instead, I imported the sdk inside my workspace, as taught by the documentation. At a certain point in the execution, the app loads a PlacePickerFragment to let the user choose the place where he is. To code this, I follow exactly the

Get Read and Publish Permissions in one request

爱⌒轻易说出口 提交于 2019-11-27 22:47:10
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 Vijay What ever you saw on Spotify is not the outcome of publish_stream .What they have used is the Open Graph Open graph concepts involves integrating actions of the app with the FB