facebook-sdk-4.0

Facebook Android SDK not registering installs

霸气de小男生 提交于 2019-12-05 07:41:17
问题 I created an app in Unity and published it to an Eclipse Android project, then I included the Facebook SDK in the project, I also followed the getting started wizard in the developer site. I added the following line of code to the onResume() function of my main activity: com.facebook.AppEventsLogger.activateApp(this, "MY FB APP ID"); In the Manifest file of the app I added the following: <activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation

How to re-ask declined permissions in Facebook SDK 4.0 (android)

最后都变了- 提交于 2019-12-05 04:48:35
问题 I checked below. It is very similar but it is not same my problem. How to re-request permissions in Facebook SDK 4.0 I got permissions in this code. LoginManager.getInstance().logInWithReadPermissions(*fragment*, "user_friends"); If a user reject "user_friends" permission, I can't re-ask "user_friends" permissions above code. Because automatically rejected on next authentication. What actions should I do to get "user_friends" programmatically? 回答1: its simple just use LoginManager.getInstance

Facebook SDK and sharing a Play Store app link with ShareDialog issue

回眸只為那壹抹淺笑 提交于 2019-12-05 01:18:43
问题 I'm trying to share a link(my Google Play app link) using ShareDialog from Facebook SDK but the problem is that when the URL is my app's Google Play link the other information is not displayed correctly... Actually it's displaying only the link from Google Play without name or description! Here's the code: FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder( this) .setLink("https://play.google.com/store/apps/details?id=<myapp>") .setDescription("Test") .setName("Test for

How to extend facebook access token in python

梦想的初衷 提交于 2019-12-04 09:41:04
问题 I am using the Python facebook-sdk client library. I currently have a short-lived access token obtained from https://developers.facebook.com/tools/accesstoken/ that I copy the code from the site into my code for authentication. graph = facebook.GraphAPI(access_token) This token however expires after 60-mins. I am looking to extend this to a 60 day-long lived token so that don't need to manually copy in new every time it expires. I can find numerous answers on how to do this in different

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

Google Play URL messes up Facebook's share dialog

怎甘沉沦 提交于 2019-12-04 03:52:01
I am trying to share an image with title and description on Facebook but it looks like when I set a Google PLay URL as the ContentUrl then the title and description are not displayed. This is my code: if (ShareDialog.canShow(ShareLinkContent.class)) { ShareLinkContent linkContent = new ShareLinkContent.Builder() .setContentTitle("I want this car") .setContentUrl(Uri.parse("http://www.producthunt.com")) .setImageUrl(Uri.parse("http://www.topgear.com/uk/assets/cms/50b95ad3-7884-4b3d-ba3c-68dbeff8b737/Large%20Image%20(optional).jpg")) .build(); shareDialog.show(linkContent); } The Result: But

NullPointerExcepetion Facebook sdk v4.5.0 when enable Proguard (when try to login using Parse library)

和自甴很熟 提交于 2019-12-04 02:59:41
问题 I'm trying to login with Facebook using ParseFacebookUtils library and it's working good but when i enabled the Proguard file i have this exception on Facebook login activity startup: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.name/com.facebook.FacebookActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java

Error: Class not found when unmarshalling: com.facebook.login.Login Client Request

你离开我真会死。 提交于 2019-12-04 00:22:31
问题 I am getting this error when hitting the "Login With Facebook" (Simple login button). I have Google, and read other topics here - but I can not see any thing matching my issue. I am adding Login.java class below. public class Login extends Activity { /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(R.layout.activity_login);

Facebook Android SDK not registering installs

一个人想着一个人 提交于 2019-12-03 21:53:18
I created an app in Unity and published it to an Eclipse Android project, then I included the Facebook SDK in the project, I also followed the getting started wizard in the developer site. I added the following line of code to the onResume() function of my main activity: com.facebook.AppEventsLogger.activateApp(this, "MY FB APP ID"); In the Manifest file of the app I added the following: <activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:name="com.facebook.unity

Facebook android app error : Invalid key hash

China☆狼群 提交于 2019-12-03 18:00:38
问题 I have imported the Facebook SDK to my android project, first time I logged in to Facebook from my android application it worked, but the second time I got this error : Invalid key hash. The key hash "..." does not match any stored key hashes. Configure your app key hashes at http://developers.facebook.com/apps/.. I also tried to enter the key they provided in this error but it didn't work. EDIT: I have used the cmd command to which it generates a key and asks for the password which is