facebook-android-sdk

Unable to resolve dependency Android Studio 3.0

坚强是说给别人听的谎言 提交于 2019-11-27 11:06:20
问题 It's good to have a Updated Android Studio 3.0 . But I am facing a problem with Android Studio 3.0 , I just created a new project in Android Studio 3.0 . Then I got some error I solved these by changing dependencies to latest version and issues solved. But, when I added a dependency of facebook account-kit sdk com.facebook.android:account-kit-sdk:4.+ I am getting following errors-: Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.android

FacebookSdk.sdkInitialize (Context) is deprecated

纵然是瞬间 提交于 2019-11-27 10:03:58
问题 I'm using facebook-android-sdk-4.19.0 in Android Studio and I followed the Facebook quick start guide at https://developers.facebook.com/docs/android/getting-started (Click on the Quick Start button to sign in with your own facebook account). In the guide, it's told to copy&paste the following code in the snippet to track app logs import com.facebook.FacebookSdk; import com.facebook.appevents.AppEventsLogger; public class MyApplication extends Application { @Override public void onCreate() {

Is it possible to change Facebook login button image in Facebook Android SDK3?

99封情书 提交于 2019-11-27 10:00:02
问题 Facebook Android sdk has a com.facebook.widget.LoginButton I want to put my own image for the Login button. Is it possible ? So far i've tried adding android:src="@drawable/facebook" to the layout file as an attribute to the button element with no luck 回答1: 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

Facebook friends dialog returns “Unknown method” error

十年热恋 提交于 2019-11-27 09:38:58
So I have been trying this since many days. Could not find anything anywhere. When I try to call the Friends dialog with Facebook Android SDK it return this error: API Error Code: 3 API Error Description: Unknown method Error Message: This method isn't supported for this display type I didn't find anything on documentation pages telling that friends dialog is not allowed on touch devices. I am using the following code to do this: Bundle params = new Bundle(); params.putString("id", "brent"); Log.i("In on click", params.toString()); SampleDialogListener()); mFacebook.dialog(TestActivity.this,

Facebook authentication to my server using Android

随声附和 提交于 2019-11-27 09:25:54
问题 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

Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

我只是一个虾纸丫 提交于 2019-11-27 08:18:53
I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception: java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance. I have search for this error but no one else seems to have had any troble with it. I guess it is because I am using a TabHost and TabsGroupActivities for each tab. But I have no clue on how to solve it. I have added the relevant code here: public

Access token removed in Facebook Android SDK 4.0

亡梦爱人 提交于 2019-11-27 06:52:39
问题 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

Facebook SDK 3.7 for Android request email permission

↘锁芯ラ 提交于 2019-11-27 06:32:23
问题 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

android facebook sdk v4.0 not working

筅森魡賤 提交于 2019-11-27 06:02:25
问题 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

Facebook sdk get users phone number or Address?

☆樱花仙子☆ 提交于 2019-11-27 05:15:42
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). 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 to Facebook's APIs: https://developers.facebook.com/docs/reference/api/user/ You can use the graph API