facebook-android-sdk

Graph API v2.3 , Cannot pass a read permission (read_custom_friendlists) to a request for publish authorization

前提是你 提交于 2019-12-11 02:29:12
问题 I'm trying to add additional permission to access friends list in my Android App , there are many resources about old API graph but could not find anything for new API , so I tried to add new permission to array but it didn't work and I got above error. public void getProfileInformation() { AccessToken token = AccessToken.getCurrentAccessToken(); LoginManager.getInstance().logInWithPublishPermissions(LoginActivity.this, Arrays.asList(new String[]{"email", "publish_actions", "user_birthday",

Get user profile facebook using oficial facebook-android-sdk [closed]

隐身守侯 提交于 2019-12-11 00:30:10
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . i am using facebook-android-sdk for a single sign on, but i can`t get user facebook profile data. this is my code: try { JSONObject me = new JSONObject(facebook.request("me")); String id = me.getString("id");

Android LikeView error

落花浮王杯 提交于 2019-12-10 21:07:03
问题 I'm using facebook android sdk v3.19.1 in my android app. I try to use LikeView, but it's only working with users who added to the facebook app settings in the roles section as developer or tester. If I try to click the like button with a normal facebook user or a test user it's appears and disappears quickly and gives back the following error message: error_description: The like dialog is only available to developers and testers. error: server_error error_reason: dialog_disabled My app is

How to get current Facebook access token on app start?

社会主义新天地 提交于 2019-12-10 19:16:31
问题 On app start I need to know if the user is logged in or not to show a login page or not. My first try was to call AccessToken.getCurrentAccessToken() , but this doesn't work, see https://stackoverflow.com/a/29854249/1016472 My 2nd try was to use the AccessTokenTracker but this doesn't work too. To use the AccessTokenTracker I have to initialize the Facebook SDK first. But during this initialization the access token is send to the tracker. The tracker isn't created at this time and can't

facebook android sdk 4.0 , way to unregister callback from LoginManager

血红的双手。 提交于 2019-12-10 16:27:51
问题 I am using the facebook sdk 4.0 inmy android app. I have an Activity whose functionality is to post some message to facebook ( this is not my main Activity of my app ) i am doing the following to login to facebook and then post the message FacebookSdk.sdkInitialize(this.getApplicationContext()); callbackManager = CallbackManager.Factory.create(); LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult

Getting Friends List Empty Facebook SDK 3.8 in Android

人走茶凉 提交于 2019-12-10 12:19:31
问题 I am trying to fetch friends' list in Facebook SDK 3.8 but it returning Empty User List . I have also set the permissions of user_friends . Please see the following code. <code> LoginButton loginButton = (LoginButton) findViewById(R.id.login_button); loginButton.setReadPermissions(Arrays.asList("user_friends")); Request request = Request.newMyFriendsRequest(session, new Request.GraphUserListCallback() { @Override public void onCompleted(List<GraphUser> users, Response response) { Log.i(

Android how to get email from facebook sdk

喜你入骨 提交于 2019-12-10 12:15:17
问题 I need to get the email of the user using android Facebook sdk, I think it is something in the asMap but it seems it couldn't, I tried this Session.openActiveSession(this, true, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { // TODO Auto-generated method stub if (session.isOpened()) { // make request to the /me API Request.executeMeRequestAsync(session, new Request.GraphUserCallback() { @Override public void onCompleted

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

孤街醉人 提交于 2019-12-10 10:24:39
问题 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

Using Facebook Achievement API in Android

删除回忆录丶 提交于 2019-12-10 09:25: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:/

Facebook login sdk - Android

天涯浪子 提交于 2019-12-10 04:19:02
问题 I am trying to connect on my app with the facebook login. I did all these steps and I am facing a strange issue. So the login button works because the facebook login window appears but I am not getting the facebook token (onError is called). I already tried all the solutions from this Questions. This code is the same as the one in the Facebook tutorial. mCallbackManager = CallbackManager.Factory.create(); LoginButton loginButton = findViewById(R.id.login_button); loginButton