facebook-sdk-4.0

java.lang.NoClassDefFoundError and ClassNotFoundException after add android Facebook SDK to the project

拜拜、爱过 提交于 2020-01-03 10:45:09
问题 I just added android Facebook SDK to my project to use Facebook ads to promote my app and the app crashes on starting, I got this exception here's the log E/AndroidRuntime: FATAL EXCEPTION: main Process: www.pro_cs_is.com, PID: 20307 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/appevents/InternalAppEventsLogger; at com.facebook.marketing.internal.MarketingLogger.<init>(MarketingLogger.java:47) at com.facebook.marketing.internal.MarketingInitProvider.setupCodeless

Send image and text with OpenGraph FacebookSDK 4.4 in Swift

帅比萌擦擦* 提交于 2020-01-03 04:16:30
问题 I am working with Facebook SDK 4.4.0 in my Swift App. Because Facebook forced the removal of prefilled text, I am trying to use Open Graph to post on Facebook content and image from my app. What I need to do is to send to the Facebook Timeline some text content and also a local image (not on the web). The image is local so it is within the app. What I achieved until now is to send the local image OR the content, but I want to send both things together. Here is the Swift code to send the image

Facebook SDK Login/Logout ngrok

老子叫甜甜 提交于 2020-01-03 01:58:06
问题 I'm trying to integrate a web app I'm building with Facebook. Facebook now requires all API calls to be made from https sites. This app I'm building is just for fun so I'm using localhost. I'm using ngrok to forward my requests to Facebook as https. My issue is that although I can see my app when I navigate to the ngrok domain, but it is not working as expected. The ngrok command I am using to create a https tunnel is ngrok http -bind-tls=true localhost:3001 I'm using React to build my app

Post Id facebook share dialog always return null in Android

落花浮王杯 提交于 2019-12-30 18:28:49
问题 I used test app id and log on by test user create at dash_board app on facebook develop site, require pulish_actions permission when login using login button widget of facebook sdk but result get postid always = null. Here is my code: .... shareDialog = new ShareDialog(MainActivity.this); shareDialog.registerCallback(callbackManager, new FacebookCallback<Sharer.Result>() { @Override public void onSuccess(Sharer.Result result) { if (result.getPostId() != null) Log.e(TAG, result.getPostId()); }

Facebook SDK 4.0.1 Login without login button

[亡魂溺海] 提交于 2019-12-29 03:10:30
问题 I'm trying to log in without using login button. I followed facebook tutorial but i can not get it work, always give me NullPointerException. My Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.hema.testfcaebooksdk" > <uses-permission android:name="android.permission.INTERNET"/> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="

Facebook SDK error for subscript members [duplicate]

南楼画角 提交于 2019-12-25 19:04:49
问题 This question already has answers here : Type 'Any?' has no subscript members [duplicate] (2 answers) Closed 3 years ago . I am using Facebook SDK for login and fetching data at my end but unable to solve the issue I am facing challenges related to syntax func fetchProfile() { let parameters = ["fields": "email, first_name, last_name, picture.type(large)"] FBSDKGraphRequest(graphPath: "me", parameters: parameters).start(completionHandler: { (connection, user, requestError) -> Void in if

How to force android facebook sdk to re-authenticate

杀马特。学长 韩版系。学妹 提交于 2019-12-24 07:58:33
问题 Short version : I want my app to somehow delete/reset the Facebook Apps on the same device, so that after logout it will always ask people to login in Facebook Apps and forget all the account history to maintain the privacy. Long version: I am building an android apps that do a specific tasks like this: The apps will capture an image The apps will ask user to login into Facebook (e.g. Facebook integration) The apps will then try to share the captured image via user's Facebook account The apps

Facebook share dialog not working correctly in MI devices

半城伤御伤魂 提交于 2019-12-24 07:17:30
问题 ShareLinkContent code ShareLinkContent content = new ShareLinkContent.Builder() .setContentUrl(Uri.parse(shareUrl)) .setContentTitle(shareTitle) .build(); Share Dialog codes that I tried a. Using Share Dialog object ShareDialog dialog = new ShareDialog(this); dialog.show(content, ShareDialog.Mode.AUTOMATIC); //tried other 4 modes too b. Using static access ShareDialog.show(this, content); Now the issue is, it works perfectly well in all the regular phones like Motorola, Samsung, Pixel, Lenovo

How to set permission “publish_actions” in LoginButton using facebook sdk?

本秂侑毒 提交于 2019-12-24 03:44:12
问题 I want to post a picture on facebook timeline. I am using LoginButton to set up the permission of publish_actions.But I got error message "com.facebook.FacebookException: Cannot pass a publish or manage permission (publish_actions) to a request for read authorization." Does any one know how to set the permission in LoginButton? protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); uiHelper = new UiLifecycleHelper(this,

CodeIgniter Facebook SDK 4 with Composer

主宰稳场 提交于 2019-12-24 02:33:25
问题 I'm trying to install and run the Facebook SDK on CodeIgniter using Composer. CodeIgniter is installed and working nicely. Composer support was added by doing the following: curl -s http://getcomposer.org/installer | php touch composer.json Added the require lines to the composer.json file ( "facebook/php-sdk-v4" : "4.0.*" ) Ran composer update All went to plan. Composer created a /vendor folder, and the Facebook SDK is there. I then added Composer support to CodeIgniter by adding the line