facebook-android-sdk

Facebook login not working if Facebook native application installed in device?

限于喜欢 提交于 2019-12-04 10:16:48
I am working on android Application. when facebook native application installed it does not work and show only two popup. but if itis not installed it redirect to facebook website and works fine .How i can resolve this . any help will be appreciated. I have checked and added all hashkey in facebook app. but still not working . statusCallback = new SessionStatusCallback(); Session session = Session.getActiveSession(); this.isLogin = isLoginUser; session = null; if (session == null) { if (savedInstanceState != null) { session = Session.restoreSession(context, null, statusCallback

Facebook Native ads in recycler view android

最后都变了- 提交于 2019-12-04 09:59:28
I am wondering if anyone has tried to integrate facebook audience network native ads in recycler view ?? Is there any simple solution like mopub recycler view adapter https://github.com/mopub/mopub-android-sdk/wiki/Native-Ads-with-Recycler-View for facebook audience network native ads ?? I create a lib for loading Facebook Native Ad in Adapter. https://github.com/ldt116/FBNativeAdAdapter You can check the example MyAdapter adapter = new MyAdapter(); FBNativeAdAdapter fbAdapter = FBNativeAdAdapter.Builder.with(PLACEHOLDER_ID, adapter).build(); RecyclerView rv = (RecyclerView) findViewById(R.id

React-native fbsdk build errors

喜夏-厌秋 提交于 2019-12-04 09:55:54
I am getting the following errors while running the command react-native run-android or ./gradlew build :react-native-fbsdk:generateReleaseResValues UP-TO-DATE :react-native-fbsdk:generateReleaseResources :react-native-fbsdk:mergeReleaseResources :react-native-fbsdk:processReleaseManifest :react-native-fbsdk:processReleaseResources /Users/a/projects/gratisapp/node_modules/react-native-fbsdk/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.3.1/res/values-v24/values-v24.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android

Facebook SDK 3.8 : permission publish_actions not returned

梦想与她 提交于 2019-12-04 09:25:22
问题 I'm following the facebook android sharing tutorial by facebook (https://developers.facebook.com/docs/android/share). The app runs fine and I can login with facebook an click on the demo share button. So this is the procedure of my app: Login with facebook The facebook session object gets updated and the following permissions are saved within the session object: user_likes, user_friends, user_status, basic_info Now, I want to share something. Therefore the user clicks on a share button and a

How do I simply share content on Facebook wall using its Android SDK?

試著忘記壹切 提交于 2019-12-04 08:38:58
问题 I cannot find many examples of the FB + Android SDK and the samples are not simple enough(some of them are deprecated). My simple goal is to share some content on FB using my Android app. When I developed the iOS app it was simply AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [appDelegate facebookLogin]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"pikSpeak", @"name", shareURL, @"link", @"pikSpeak for iPhone !", @

Android - Facebook login causes onResume error only for first time

假装没事ソ 提交于 2019-12-04 07:36:23
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 occurs again and again suddenly(while permission screen is still behind). If I can be quick enough, I

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

Login callback is not triggered using facebook-android-sdk 4

核能气质少年 提交于 2019-12-04 07:21:47
I have an activity for user to login with facebook. I used facebook-android-sdk v4.0.0. But login callback is not triggered when user click on login button. After showing progress bar, start previous activity automatically without showing any error on log instead of triggering login callback. In SignUpActivity, private CallbackManager callbackManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up); callbackManager = CallbackManager.Factory.create(); LoginButton loginButton = (LoginButton) findViewById

Sharing on Facebook from Android using setContentUrl()

佐手、 提交于 2019-12-04 06:11:42
问题 I am having some trouble while trying to share content from my app into Facebook. I am using the following code to do it: facebookButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if(ShareDialog.canShow(ShareLinkContent.class)){ ShareLinkContent linkContent=new ShareLinkContent.Builder() .setContentUrl(Uri.parse(imageUrls.get(0))) .build(); shareDialog.show(linkContent, ShareDialog.Mode.WEB); } } }); My images are stored on Firebase Storage and

Facebook installs tracking for Android

不想你离开。 提交于 2019-12-04 05:58:16
问题 We are still in process of investigation, why our installs do not get tracked. I have opened another support ticket with Facebook to clarify if install and login are equal or different events, but I also want to dig more into the Ti.Facebook module. We've been testing on Android because of the ease of updates. This is the explanation on Facebook SDK, what needs to be done, to track installs: https://developers.facebook.com/docs/app-ads/sdk#install-tracking And this is the code to log in