facebook-sdk-4.0

App invite dialog delegate methods result parameter contains no request id

China☆狼群 提交于 2019-12-08 03:10:14
问题 In fb-sdk 3.x . I was able to get request id after user has sent requests to their friends(using FBWebDialog s) this way I could show in my app that user has invited friends which improved user experience because user got confirmation that invites were sent. Now with fb-sdk 4.0 (using FBSDKAppInviteDialog ) I don't receive any data which would enable me to show invited friends. Do you have any suggestions how to get list of invited friends? 回答1: There is no way to get list of invited friends.

Facebook: refresh AccessToken on Android

微笑、不失礼 提交于 2019-12-07 08:37:02
问题 They are saying in the AccessToken docu the following: "Native mobile applications using Facebook's SDKs will get long-lived access tokens, good for about 60 days. These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers." Does it mean that only if the request to Facebook's servers is made from client Android app (I am not sure how to interpret the "... the person using your app ...") then the access token will be refreshed ? In my app,

Unable to add com.facebook.share.widget.Sharebutton to Layout XML

一世执手 提交于 2019-12-07 04:53:00
问题 I am trying to use Facebook SDK in Android to Share Content Direction from my app. I'm using the following code from here on Facebook Docs: ShareLinkContent content = new ShareLinkContent.Builder() .setContentUrl(Uri.parse("http://www.focusoutdistractions.com/")) .build(); ShareButton shareButton = (ShareButton) rootView.findViewById(R.id.ibtn_twshare); shareButton.setShareContent(content); Question is - In the XML file, I need to add com.facebook.share.widget.Sharebutton to the XML but it is

how to get location of facebook user using Graph API for android

筅森魡賤 提交于 2019-12-06 10:35:21
I am able to get name,email,gender and birth date using the following code loginButton.setReadPermissions(Arrays.asList("public_profile, email, user_birthday, user_friends,user_location")); //I also added user_location loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { // App code GraphRequest request = GraphRequest.newMeRequest( loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object,GraphResponse response) { Log.v("LoginActivity",

Facebook SDK Share Link content gets replaced by meta data from content URL

早过忘川 提交于 2019-12-06 10:26:16
问题 I've set up content for FBSDKShareLinkContent, and set each param contentURL, contentTitle, contentDescription, imageURL. When the share dialog loads in the facebook native app, it is correctly populated with my params. However, once I check the post on facebook, the param data is no longer shown and instead the post title is from the meta data of the contentURL. How do I override the meta data with my contentDescription and contentTitle? Thanks! // Assemble Content var content:

Android facebook 4.0.0 share dialog does not share the content

痴心易碎 提交于 2019-12-06 03:41:49
问题 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

Android Facebook Login : How to check login using LoginManager without having LoginButton in XML

拜拜、爱过 提交于 2019-12-06 02:53:21
I have done facebook login check in my android app using LoginButton, but I want to check using LoginManager. How can I modify my code to work that way? LoginButton loginButton = (LoginButton) findViewById(R.id.fb_login_button); loginButton.setReadPermissions("user_friends"); shareDialog = new ShareDialog(this); //Login Callback registration LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { Toast.makeText(getApplicationContext(), "in LoginResult on success", Toast.LENGTH_LONG).show(); /

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

Facebook returning error '(#200) Requires extended permission: publish_actions' even after getting 'publish actions' permission approved

我是研究僧i 提交于 2019-12-05 19:26:46
Hi I got ' publish_actions ' permission approved for my Facebook App. But when any user accessing this app, it is not prompting for 'post on your behalf on Facebook' permission. Unless this when any user try to comment on Facebook using this app, Facebook returns error stating: '(#200) Requires extended permission: publish_actions' OR 'The remote server returned an error: (403) Forbidden'. Can any one please help me in this? Thanks in advance. This error is thrown when you are using publish_actions permission without review. For testing purpose you can always make a test user in Roles column

Unable to add com.facebook.share.widget.Sharebutton to Layout XML

China☆狼群 提交于 2019-12-05 11:40:23
I am trying to use Facebook SDK in Android to Share Content Direction from my app. I'm using the following code from here on Facebook Docs : ShareLinkContent content = new ShareLinkContent.Builder() .setContentUrl(Uri.parse("http://www.focusoutdistractions.com/")) .build(); ShareButton shareButton = (ShareButton) rootView.findViewById(R.id.ibtn_twshare); shareButton.setShareContent(content); Question is - In the XML file, I need to add com.facebook.share.widget.Sharebutton to the XML but it is not getting recognized. Is com.facebook.share.widget.Sharebutton the correct XML element to add for