Questions tagged [facebook-sdk-4.0]

Facebook sdk 4.0 is latest set of API for facebook developers. It has two branches: - Facebook C#/.Net SDK 4.0 - Facebook PHP SDK 4.0 Use apt tag among two.

Facebook sdk 4.0 is latest set of API for facebook developers. It has two branches:

  • Facebook C#/.Net SDK 4.0
  • Facebook PHP SDK 4.0

Use apt tag among two.

1172 questions
14
votes
2 answers

Enabling Chrome Custom Tabs for Facebook login using Android SDK

I am using Facebook SDK version 4.11.0 in my app. As per the steps outlined on the Official docs page, I have added following things inside manifest file to enable Chrome Custom Tabs.
14
votes
2 answers

How to “rerequest” email permission using Facebook iOS SDK 4.x?

I am integrating FacebookSDK 4.x integration with custom UI and using following method to log-in and also getting email permission from user. FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login…
Premal Khetani
  • 3,175
  • 1
  • 26
  • 58
14
votes
3 answers

Reset Facebook Token Reference - Facebook SDK 4.0

I previously used the following to clear and reset the Facebook access token [FBSession.activeSession closeAndClearTokenInformation]; Since the update to 4.0 this no longer works. FBSession.activeSession has changed to [FBSDKAccessToken…
memyselfandmyiphone
  • 1,080
  • 4
  • 21
  • 43
13
votes
4 answers

Android Application Login with Facebook is not working with Facebook App installed

This code is working well when I uninstalled the Facebook App but didn't work with Facebook App installed. I'm using Facebook SDK 4.0. This is my code package com.example.nhp04.gqfood; import com.facebook.AccessToken; import…
Yaseen Ahmad
  • 1,807
  • 5
  • 25
  • 43
13
votes
1 answer

Invite users with AppInviteDialog

I am glad that Facebook finally let users invite their friends with the SDK version 4 but I don't know how to do it. The documentation is clear at least for a while: if (appInviteDialog.canShow()) { AppInviteContent content = new…
erdomester
  • 11,789
  • 32
  • 132
  • 234
13
votes
5 answers

Facebook FBSDKAppInviteContent - Missing App Link URL

Do you need to have your own website with meta tags for your app link url to use the FBSDKAppInviteContent and FBSDKAppInviteDialog to invite friends?. If I put just the app link url there, It shows an error saying something like Missing App Link…
Garlen
  • 426
  • 1
  • 5
  • 17
13
votes
4 answers

Sharing callback doesnt work wiith Facebook SDK 4 Android

I've recently moved my app to FB SDK 4.0 and I got some weird troubles with sharing. The sharing dialog works great - I'm able to share with both Facebook app and WebDialog. However, after successful/failure sharing my callback doesn't work at all -…
Paul Freez
  • 1,059
  • 15
  • 27
13
votes
7 answers

Facebook AccessToken.getAccessToken is null on opening of app even after first login

I have integrated latest Facebook android sdk (Sdk 4.0). This is the code I have added in my onCreate method. FacebookSdk.sdkInitialize(this.getApplicationContext()); callbackManager = CallbackManager.Factory.create(); …
12
votes
1 answer

Flutter: facebook_app_events iOS 14 compliance (setAdvertiserTrackingEnabled)

Reading through the Facebook App Events Documentation and general iOS 14 guidelines, it looks like we need to check for ask users for consent for Advertiser tracking any time information is sent to Facebook. I don't see an API endpoint for the…
beechan
  • 121
  • 3
12
votes
3 answers

Where do I view event parameters with Facebook Analytics App Events?

I'm using Facebook analytics in my Android app to log app events - I'm seeing the correct tracking of app events and am able to view them in my Facebook App Analytics dashboard. However, I have no idea where parameters that I attach to each event…
amn
  • 175
  • 1
  • 8
12
votes
4 answers

iOS 9 Facebook Access Token is nil on future app launches

After the recent iOS 9 update, along with updates to the Facebook SDK (4.6.0), I'm finding that my login session is no longer persisting between app launches. My flow so far has been pretty simple. Login to Facebook using the FBSDKLoginButton. On…
Unome
  • 6,750
  • 7
  • 45
  • 87
12
votes
1 answer

Facebook SDK 4.0 AppInviteDialog with callback

In the new Fb SDK 4.0 for Android you can register a callback for the LoginButton according to the docs. https://developers.facebook.com/docs/facebook-login/android/v2.3 The question is is this possible for the AppInviteDialog as well? Or is there…
11
votes
3 answers

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

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…
11
votes
1 answer

canOpenURL issue to integrate latest Facebook sdk 4.5

I got the following error message when I was trying to integrate latest Facebook sdk 4.5 to my swift project: canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" I have no problem to login with Facebook and got user name and email but I…
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
11
votes
8 answers

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

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…
datasmurfen
  • 324
  • 8
  • 25
1 2
3
78 79