facebook-android-sdk

Get friend list facebook 3.0

帅比萌擦擦* 提交于 2019-12-29 02:47:05
问题 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

Facebook sdk get users phone number or Address?

一个人想着一个人 提交于 2019-12-28 02:15:07
问题 I think i dug through the whole facebook sdk documentation but can't seem to find the way to get the users Phone number or Address. Is this feature removed, as of spoken in this thread where it's suggested it will be re-enabled in a few weeks (2011). 回答1: This information is not available via the Facebook APIs and will not be added anytime soon. If you want this information from the user you should prompt them for it after they have logged into your application using Facebook. Here's a link

Posting a Text Status using Facebook API in Android - The simplest method

三世轮回 提交于 2019-12-25 18:58:27
问题 I have been searching a lot to find a way to do this. But nothing seems to be working for me. Can someone please help in doing this? This is my image button for facebook status post: <ImageButton android:id="@+id/imageButton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/hoributtons" android:layout_alignTop="@+id/imageButton2" android:background="#00000000" android:contentDescription="@string/facebook" android:onClick=

Android facebook : invalid key. Android key mismatch

删除回忆录丶 提交于 2019-12-25 08:13:32
问题 When i used the simple facebook login for Android which i made a few days ago i didn't have this prolbem. Now when i run the app i get an "invalid key" - "Android key mismatch" 06-07 02:08:51.104: W/GET_MESSAGE(273): invalid_key:Android key mismatch. Your key "Es2Fbgrno9htovlX6FcXiex6u0I" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers ![api-key] http://imgur.com/8uTnu And here is the wrong key i get

Android facebook : invalid key. Android key mismatch

不打扰是莪最后的温柔 提交于 2019-12-25 08:11:02
问题 When i used the simple facebook login for Android which i made a few days ago i didn't have this prolbem. Now when i run the app i get an "invalid key" - "Android key mismatch" 06-07 02:08:51.104: W/GET_MESSAGE(273): invalid_key:Android key mismatch. Your key "Es2Fbgrno9htovlX6FcXiex6u0I" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers ![api-key] http://imgur.com/8uTnu And here is the wrong key i get

Unable to add facebook sdk to project

假装没事ソ 提交于 2019-12-25 03:15:24
问题 I imported the Facebook SDK as library project into eclipse. I did it by checking Copy projects into Workspace and by leaving it unchecked as well (for some reason the description says that I must uncheck it). I tried importing Existing Projects into Workspace and Existing Android Code Into Workspace as well. The library checkbox is checked in the properties. A Facebook sdk has never been imported into this workspace yet. I created a new project that runs smoothly without Facebook. In the

facebook realtitme update in android returns null

青春壹個敷衍的年華 提交于 2019-12-25 03:04:11
问题 I would like to get realtime_update when user's friendlist changes and am trying to subscribe to friends object .I have the code below where I added params.putString("access_token", "12|wewee"); because I used to get {This method must be called with an app access_token.}, isFromCache:false} .Now I get the response as displayed below.I would like to get realtime subscription .How do I make it work? I really appreciate any help.Thanks in Advance. code: Bundle params = new Bundle(); params

checking if facebook-sdk android giving null value for user data before calling getProperty()

微笑、不失礼 提交于 2019-12-24 21:15:25
问题 I searched I can't find any solution for this problem. I have made graph-request in facebook SDK 3.5. When I try to get data using getProperty("Property_name") and if its value is null maybe user didn't set the favourite sports in his profile Example: Code:For buildUserInfoDisplay(GraphUser user) Method // I have used all The mandatory permissions Map<String, String> map; map = new HashMap<String, String>(); try { map.put("ID", user.getId().toString()); String athletes = user.getProperty(

How to add Facebook App's accessToken to GraphRequest.newGraphPathRequest method? [duplicate]

耗尽温柔 提交于 2019-12-24 05:01:11
问题 This question already has answers here : Accessing Facebook Graph API without login (2 answers) Closed 2 years ago . I copied the code below from Facebook Graph Api console . However, Android Studio doesn't recognize accessToken . I have alread created a Facebook App and I got its acesstoken . But I don't know where to add it in the code. If I just copy and paste. It shows this error If I use AccessToken.getCurrentAccessToken() method, it will show this error: errorMessage: An access token is

Getting 'E/AndroidRuntime: Error reporting crash android.os.TransactionTooLargeException' on clicking a Positive button of AlertDialog

狂风中的少年 提交于 2019-12-24 02:20:54
问题 I'm getting this error: E/AndroidRuntime: Error reporting crash android.os.TransactionTooLargeException and this too: java.lang.StackOverflowError: stack size 8MB while running below given code: mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { final FirebaseUser user = firebaseAuth.getCurrentUser(); if (user != null) { // User is signed in if (isFacebookLoggedIn()) { if (dialog == null) { final AlertDialog