facebook-sdk-3.14.x

Android + Facebook SDK : “Failed to authenticate the application because of app name mismatch.”

只愿长相守 提交于 2020-01-04 13:39:22
问题 While trying to use Facebook SDK on my Android App, I got this error: "Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog." After reading many posts on this subject, from other people getting the same issue and succeeded in correcting it, it's still impossible for me to get the Facebook SDK working… I suppose there is something wrong between the app configuration on Facebook and my Android project, but I don't

Android + Facebook SDK : “Failed to authenticate the application because of app name mismatch.”

一曲冷凌霜 提交于 2020-01-04 13:39:09
问题 While trying to use Facebook SDK on my Android App, I got this error: "Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog." After reading many posts on this subject, from other people getting the same issue and succeeded in correcting it, it's still impossible for me to get the Facebook SDK working… I suppose there is something wrong between the app configuration on Facebook and my Android project, but I don't

A library uses the same package as this project after importing Facebook SDK

烂漫一生 提交于 2019-12-30 05:54:12
问题 This is the error-message I get after that I imported the Facebook SDK (3.15.0) into Android Studio (0.8.2). Error:Execution failed for task ':app:processDebugResources'. Error: A library uses the same package as this project: com.aaa.bbb.test You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0 This is mine build.gradle. apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion

How to get email of facebook user using facebook sdk in android

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:47:41
问题 Trying to get facebook user details like name,location and email. I am able to get name and location but email is not getting.After checking developers page email requires permission. I didn't get how to add permission in my code please help me.Thanks public class MainActivity extends ActionBarActivity { // Create, automatically open (if applicable), save, and restore the // Active Session in a way that is similar to Android UI lifecycles. private UiLifecycleHelper uiHelper; private View

How my app can know when user logout from its Android native Facebook app?

北城余情 提交于 2019-11-30 23:18:32
How my app can know when user logout from its native Facebook app ? I am using below code for Logging out from Facebook in my app. And it is working fine. class LogoutTask extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { if (facebook.isSessionValid()) { try { facebook.logout(getApplicationContext()); editLoginStatus(false); SharedPreferences.Editor editor = mPrefs.edit(); editor.putString("access_token", null); editor.putLong("access_expires", facebook.getAccessExpires()); editor.commit(); } catch (MalformedURLException e) { e.printStackTrace(); }

How my app can know when user logout from its Android native Facebook app?

眉间皱痕 提交于 2019-11-30 18:08:07
问题 How my app can know when user logout from its native Facebook app ? I am using below code for Logging out from Facebook in my app. And it is working fine. class LogoutTask extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { if (facebook.isSessionValid()) { try { facebook.logout(getApplicationContext()); editLoginStatus(false); SharedPreferences.Editor editor = mPrefs.edit(); editor.putString("access_token", null); editor.putLong("access_expires",

A library uses the same package as this project after importing Facebook SDK

萝らか妹 提交于 2019-11-30 17:22:52
This is the error-message I get after that I imported the Facebook SDK (3.15.0) into Android Studio (0.8.2). Error:Execution failed for task ':app:processDebugResources'. Error: A library uses the same package as this project: com.aaa.bbb.test You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0 This is mine build.gradle. apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion '19.1.0' defaultConfig { applicationId "com.aaa.bbb.test" minSdkVersion 11 targetSdkVersion 19

Parse Facebook login fails with error code 251

我的未来我决定 提交于 2019-11-28 11:39:23
I'm trying to use Parse Facebook & Twitter login in my app but the problem is I can't get the Facebook login to work. I'm getting the following error message: Error Domain=Parse Code=251 "The operation couldn’t be completed. (Parse error 251.)" UserInfo=0xa0329c0 {code=251, error=The supplied Facebook session token is expired or invalid. I also downloaded the Parse tutorial "IntegratingFacebookTutorial" and still the same error. (I added the bundle to the facebook app and updated the application id on xcode as required. The same happens in my own project when trying to use

Share Image and Text to Facebook on android

百般思念 提交于 2019-11-28 03:27:28
问题 What is the correct way to share an image and text to Facebook in android? e.g. picture with pre-populated text. I realise that this is not possible from the native Android share intent as described here. As it can only take an image or a link not both. Also I have tried using the facebook-sdk-3.14 with: FacebookDialog.ShareDialogBuilder but I now realise this is for sharing links only. I have also tried with: createShareDialogBuilderForPhoto() but this is for sharing images only. Is there

Parse Facebook login fails with error code 251

大兔子大兔子 提交于 2019-11-27 06:26:43
问题 I'm trying to use Parse Facebook & Twitter login in my app but the problem is I can't get the Facebook login to work. I'm getting the following error message: Error Domain=Parse Code=251 "The operation couldn’t be completed. (Parse error 251.)" UserInfo=0xa0329c0 {code=251, error=The supplied Facebook session token is expired or invalid. I also downloaded the Parse tutorial "IntegratingFacebookTutorial" and still the same error. (I added the bundle to the facebook app and updated the