android-facebook

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

删除回忆录丶 提交于 2019-12-04 14:35:33
When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored key hash. I have already regenerated key hash and replaced new key on facebook. bUt still did not get result. First time I had easily logged-in, But after logged out again I'm trying to Continues with Facebook but it is showing an error message "Invalid Key has": But the same application is running perfectly fine on Emulator. why it is not working

React-native fbsdk build errors

喜夏-厌秋 提交于 2019-12-04 09:55:54
I am getting the following errors while running the command react-native run-android or ./gradlew build :react-native-fbsdk:generateReleaseResValues UP-TO-DATE :react-native-fbsdk:generateReleaseResources :react-native-fbsdk:mergeReleaseResources :react-native-fbsdk:processReleaseManifest :react-native-fbsdk:processReleaseResources /Users/a/projects/gratisapp/node_modules/react-native-fbsdk/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.3.1/res/values-v24/values-v24.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android

Import Facebook SDK on Android Studio 0.5.1

☆樱花仙子☆ 提交于 2019-12-04 08:38:47
问题 I've been searching around for a while now and tried every answer I could find with no success. I am starting to believe that the problem is in the android studio version. However here is what I've done: 1 - I've downloaded the facebook sdk 2 - Copied the sdk into my libs folder so the project looks like following: MyProj -app --libs ---facebook ----build.gradle (2) --build.gradle (1) -settings.gradle 3 - I modified settings.gradle: include ':libs:facebook', ':app' 4 - I modified build.gradle

Facebook SDK 3.0 with old Facebook app version redirects to browser and gets stuck

半腔热情 提交于 2019-12-04 08:14:15
I have in my app a FB AuthButton that is doing the connection to FB process I have a device that is running an old version of the FB app (version 1.8.3 - 1.8.4). when I click on the login button, the process doesn't start the native app, but calls the browser to finish the process. In the logs, I see those logs: 06-16 12:26:00.709: E/ActivityThread(21597): Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider 06-16 12:26:03.321: E/Tab(21678): onReceivedError -10 fbconnect://success#access_token=MY_TOKEN&expires_in=5170432 The protocol is not supported. and on the

Android facebook 4.0.0 share dialog does not share the content

[亡魂溺海] 提交于 2019-12-04 07:22:41
For hours I have been trying to share a content in my android app by facebook 4.0.0 sdk. I exactly followed facebook share document but got no result. Share dialog open when I press share button but no content is in it. If I click ok it share an empty string just. Please show me a way to fix this. Edit BTW When I remove Facebook native app from my phone, I can share with webview of facebook. CallbackManager callbackManager; ShareDialog shareDialog; private View rootView; @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle

INSTALL_FAILED_CONFLICTING_PROVIDER with Facebook SDK when I build multiple productFlavors

核能气质少年 提交于 2019-12-04 04:59:25
I'm building an Android app with multiple productFlavors , and using Facebook SDK v4.1 for login and sharing contents. The problem is that when I try to install an app on a device which already has the same app installed (but different flavor), it raises an error. It doesn't allow me to install the second app unless I uninstall the existing one. <provider android:authorities="com.facebook.app.FacebookContentProvider{my_app_id}" android:name="com.facebook.FacebookContentProvider" android:exported="true"/> According to this document , the android:authorities should be unique and I should have

android connect facebook invalid keyhash

若如初见. 提交于 2019-12-03 23:09:58
i'm working android facebook sdk. i have problem when divice has installed facebook application(invalid key hash) i recived keyhash in this code public class SpleshScreen extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_splesh_screen); try { PackageInfo info = getPackageManager().getPackageInfo( "mypackage", PackageManager.GET_SIGNATURES); for (android.content.pm.Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance

Using facebook login correctly

时间秒杀一切 提交于 2019-12-03 16:39:41
In my application on the start page I ask the user to authenticate via Facebook, then I request for some permissions and fetch some information: LoginButton authButton = (LoginButton) view.findViewById(R.id.authButton); authButton.setFragment(this); authButton.setReadPermissions(Arrays.asList("user_likes", "user_status")); fb = new FacebookMain(); I am able to get all this information, but moving to my next page I want to give a button on my listview and from there a user can post on a friends wall. I followed the HelloFacebook sample and it works like a charm, however in my case when I try to

How to share Text and Image on Facebook using Intent

▼魔方 西西 提交于 2019-12-03 16:09:12
How to share Text and Image on Facebook, I am writing a Church Application in which i want to allow user to share text and image along with URL. I am able to share online app link but not able to share text & image, where i am missing ? my code looks like this: Button btnFbSharing = (Button) findViewById(R.id.fbSharing); btnFbSharing.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(android.content

how to show all friends names in list view

狂风中的少年 提交于 2019-12-03 13:36:20
问题 I want to show friend list after log in to facebook through my app in a ListView . But my code is not working. I have also used classes like friendsArrayAdapter. I have used following code protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.friendlist_screen); facebook = new Facebook(APP_ID); mAsyncRunner = new AsyncFacebookRunner(facebook); lv = (ListView) findViewById(R.id.friendsList);