facebook-android-sdk

Android - Facebook login causes onResume error only for first time

落花浮王杯 提交于 2019-12-06 00:52:55
问题 I can successfully connect to facebook and get friendlist. All connections are OK. But when I delete data of Facebook(through settings->Applications) and my app's, a login problem occurs. [SDK 3.5] Launch my app Make a facebook connection Facebook asks for username and Password, enter them Wait a little It shows Permission screen that asks for basic user info and error occurs:" Your application stop working unexpectedly. Please try again (FORCE CLOSE)" When I click Force Close, same error

Android studio Issue : Could not find ads:AdQuality:unspecified

夙愿已清 提交于 2019-12-06 00:37:34
问题 I have updated the Android studio and just opened my project and I got the following error. Could you please let me know how to resolve this ? Error:A problem occurred configuring project ':memoryGameCollectionFree'. > Could not resolve all dependencies for configuration ':memoryGameCollectionFree:_debugCompile'. > Could not find ads:AdQuality:unspecified. Searched in the following locations: file:/C:/Program Files/Android/Android Studio/gradle/m2repository/ads/AdQuality/unspecified/AdQuality

Fetch Facebook user details in android

南楼画角 提交于 2019-12-05 22:57:22
I am developed a app in android in which i fetch user details from Facebook. I am able to fetch user name, firstname, lastname but email comes null in some Facebook account. In some Facebook account I found email id and some Facebook account email is null why? Abhishek Agarwal The problem is the email permission this is the working code for getting email id. It is given by me here Unable to access facebook login? Session.openActiveSession(this, true, new Session.StatusCallback() { // callback when session changes state @Override public void call(Session session, SessionState state, Exception

Facebook Android SDK - App request not redirects to Google Play Store

旧街凉风 提交于 2019-12-05 22:01:46
I have developed a Facebook android app(with Facebook SDK for android) which can be installed from Facebook notification links (Application request).Currently the Beta version of the app is published to Play store for testing. Now when a user receives an app request on the native Facebook app, it will prompt for choosing any browser on that device and the selected browser launch with the Facebook login page.Users will redirected to Play store by only after login to Facebook account to that browser. How we can redirect directly to play store instead of redirecting to browser ? Rana Pratap Singh

packaging android facebook sdk as apklib with maven

孤者浪人 提交于 2019-12-05 21:49:14
问题 I have used maven-android-plugin 3.0.0-alpha-7 to package the facebook android sdk as a apklib. It looks like this: $ unzip sdk-1.0-SNAPSHOT.apklib Archive: sdk-1.0-SNAPSHOT.apklib creating: META-INF/ inflating: META-INF/MANIFEST.MF inflating: AndroidManifest.xml creating: assets/ creating: res/ creating: res/drawable/ creating: res/drawable-hdpi/ creating: res/drawable-ldpi/ inflating: res/drawable/facebook_icon.png inflating: res/drawable-hdpi/facebook_icon.png inflating: res/drawable-ldpi

Where does this error come from? Error: com.facebook.FacebookException: Failed to get app name

≯℡__Kan透↙ 提交于 2019-12-05 18:51:31
I am unable to figure this out. I have added my keyhashes and all to the Facebook webpage but I am unable to figure out this error 11-12 19:51:27.744: D/HelloFacebook(5188): Error: com.facebook.FacebookException: Failed to get app name. I found this exception when my Facebook app is in Sandbox Mode but logged in and try to post status by a user who not included in developer list. You may check your developer roles or disable the Sandbox Mode. I faced this problem and got its solution by putting Application name into FacebookDialog . So here is the solution FacebookDialog shareDialog = new

FacebookCallback#onCancel() is calling after login once in Facebook Sdk 4.2.0 in Android

余生长醉 提交于 2019-12-05 15:24:36
I have successfully implemented login with facebook in android app. But now, Amazingly, When I do login one with facebook and if I try to login with facebook using facebook library 4.2.0 its onCancel() method is calling. Help! Rahul Rastogi I solved this problem by calling: LoginManager.getInstance().logOut(); just before trying to login. i have not tried the above mentioned code but the thing worked for me is i have written some code in on cancel same as in success @Override public void onCancel() { AccessToken token = AccessToken.getCurrentAccessToken(); if (token != null) { GraphRequest

Using Facebook Achievement API in Android

主宰稳场 提交于 2019-12-05 11:53:49
I understand that this might seem like a generic question, but it seems to be insanely difficult to find information on the topic, so I would appreciate a complete example \ guide \ source code link if it exists somewhere. I am developing an Android game and would like the integrate Facebook Achievements. All I want is to share achievements when the user completes a certain puzzle - so it will show in their feed and link to my app. This is the official documentation from facebook: https://developers.facebook.com/docs/games/achievements Now, when I initially started integrating the Facebook SDK

Facebook android sdk 3.0 SSO

最后都变了- 提交于 2019-12-05 10:43:31
In previous versions of the Facebook SDK we could check if a user is still signed in by using tokens. In the new 3.0 version I can't find another way other than invoking openSession() to check if the user is still logged in with SSO . But openSession() automatically invokes the login if the user is not saved and I don't want that. I only want to check SSO. How do I do this? I made a helper function that to check if the user is still logged in (or actually has an active session) for me in my app: public static boolean isActive() { Session session = Session.getActiveSession(); if (session ==

How to get user likes from Facebook with Android sdk 3.0

只谈情不闲聊 提交于 2019-12-05 07:08:50
问题 I would get user likes from facebook using Android sdk 3.0 beta. How do I do this? 回答1: Provided that you have a valid session, this is the code to get the user likes Session session = Session.getActiveSession(); Request.Callback callback = new Request.Callback() { @Override public void onCompleted(Response response) { // response should have the likes Toast.makeText(getApplicationContext(), response.toString(), Toast.LENGTH_LONG).show(); } }; Request request = new Request(session, "me/likes"