facebook-android-sdk

Android invalid key and Facebook Connect

笑着哭i 提交于 2019-11-26 19:29:19
问题 When I try to implement Facebook Connect in my Android application, I get the following error. 11-02 16:41:31.660: D/Facebook-authorize(13194): Login failed: invalid_key:Android key mismatch. Your key "8Ioc4p/jMXoU9Lezug4nzmZfFUg" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers I reset the key in the Facebook App and still it shows the same error. How can I fix it? 回答1: Your key is: " 8Ioc4p

Looking for android Facebook SDK examples [closed]

牧云@^-^@ 提交于 2019-11-26 19:04:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I've looked all over the internet and can't seem to find what i'm looking for... I'm just trying to find a site with some examples on how to use the OFFICIAL facebook android SDK http://github.com/facebook/facebook-android-sdk To be specific i'd like to see some examples on notification use and simple photo

Android Gradle build with sub projects

你说的曾经没有我的故事 提交于 2019-11-26 18:50:31
问题 I am currently in the process of converting one of our projects to Gradle from maven. The folder structure is as follows: gitRoot settings.gradle build.gradle ProjectA build.gradle src/main/java Libraries SomeLib (git submodule) ProjectBRoot (git submodule) settings.gradle build.gradle ProjectB build.gradle src/main/java Libraries FacebookSDK/facebook build.gradle src So already it looks complicated. But the idea is that ProjectB is a library project and it should be able to be built and

Facebook sdk 3.0.1 is not working properly

☆樱花仙子☆ 提交于 2019-11-26 18:40:05
问题 I am trying to login into the Facebook using Facebook sdk .But it not logging in .Its opening the dialog box but after getting the credentials its not working . If i install the Facebook app it opens the Facebook app but login is not completed i cant get the token and user id . I cant post the message to the wall also . But it displays the toast that "message successfully displayed" but it is not posted in the Facebook wall. Code: public boolean isSession() { access_token = sp.getString(TOKEN

Facebook friends dialog returns “Unknown method” error

狂风中的少年 提交于 2019-11-26 17:52:10
问题 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");

Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User

[亡魂溺海] 提交于 2019-11-26 16:52:47
I am using the following code. I want the user's Date Of Birth, Email and Gender. Please help. How to retrieve those data? This is my onViewCreated() inside the Fragment. @Override public void onViewCreated(View view, Bundle savedInstanceState) { // Setup TextView. mTextDetails = (TextView) view.findViewById(R.id.text_details); // Set up Login Button. LoginButton mButtonLogin = (LoginButton) view.findViewById(R.id.login_button); // setFragment only if you are using it inside a Fragment. mButtonLogin.setFragment(this); mButtonLogin.setReadPermissions("user_friends"); mButtonLogin

How to handle facebook like with confirm in android webview

独自空忆成欢 提交于 2019-11-26 16:38:52
问题 I am trying to implement facebook like functionality using android webview. It is working fine without "confirm" dialog. But its not working when like needs confirmation. Here is the code snippet i am using. private void setUpWebView() { likeWebView.setVerticalScrollBarEnabled(false); likeWebView.setHorizontalScrollBarEnabled(false); likeWebView.setWebViewClient(new FacebookWebViewClient()); likeWebView.setWebChromeClient(new MyChromeClient()); likeWebView.getSettings().setJavaScriptEnabled

Facebook SDK for Android duplicate support library on dependencies

不打扰是莪最后的温柔 提交于 2019-11-26 16:31:20
问题 I have implemented the new Facebook SDK 3.0 beta. The library project contains the Android support library v4. I also have the support library on my own proyect (a different version though). When I add the Facebook SDK as a library I get the next error on the console: Jar mismatch! Fix your dependencies Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the libraries must be the

Access user email using new Facebook Android SDK

安稳与你 提交于 2019-11-26 15:55:11
问题 Hi I'm playing with new Facebook Android SDK. One thing I could not figure out is how can I ask for email address. I tried following but it returned values for all fields except email address. I guess I probably have to ask permission separately for email address but not sure how I can do that if I use LoginFragment. Request request = Request.newMeRequest(session, new GraphUserCallback() { @Override public void onCompleted(GraphUser user, Response response) { profilePictureView.setUserId(user

Android app Key Hash doesn't match any stored key hashes

不羁的心 提交于 2019-11-26 15:37:46
问题 I have an application on production on Play Store which uses a login with the Facebook SDK. When I debug the application from Eclipse there is no problem, but when its on production it gives me the following error after Facebook asks me for the permissions. I have added on my app page on developers.facebook.com the key hash generated with keytool using this command: keytool -exportcert -alias diego -keystore "C:\Users\Diego\Desktop\CeluChat.KeyStore" | "C:\openssl\bin\openssl.exe" sha1