Questions tagged [facebook-sdk-4.x]

Facebook sdk 4.x is latest set of API for Facebook developers. It has two branches: - Facebook C#/.Net SDK 4.0 - Facebook PHP SDK 4.0

211 questions
2
votes
0 answers

Facebook SDK "user_likes" permission causes "Invalid Scope"

The following is the standard Facebook SDK code I used to request permissions which was working in May 2018. loginButton.setReadPermissions(Arrays.asList("user_likes")); However it now returns the following error: ERROR: "Invalid Scopes:…
2
votes
0 answers

Facebook Audience Network Ad generates error: "Ad is not Valid"

I have a live app on AppStore that uses Facebook Audience Network (FAN) for showing ads. The live version uses FAN SDK v 4.26.0 and successfully shows native and interstitial ads. However the latest development version of the app uses FAN SDK v…
2
votes
0 answers

React Native app stuck on blank white screen with iOS simulator

I built my application with the Facebook login feature for iOS last week. I don't know why but when I opened my app today I get this strange error. ** BUILD FAILED ** The following build commands failed: CompileC…
2
votes
0 answers

Invalid App ID The Provided app ID does not look like a valid app ID

I'm building an android app as an academic project, I've added Facebook sdk to my app, and before the error message, it used to show a facebook share dialog but then this error message started to appear Invalid App ID: The Provided app ID does not…
Masroor
  • 1,484
  • 3
  • 14
  • 23
2
votes
0 answers

"sharerDidCancel:" is called after first successful share when Facebook app is not installed

I use a UIButton to share using Facebook's SDK 4.31.1. Once tapped, a share dialog is presented. - (IBAction)btnSharePressed:(id)sender { [self displayShareDialog]; } - (void)displayShareDialog { FBSDKShareLinkContent *content = [self…
Got99Errors
  • 328
  • 3
  • 11
2
votes
1 answer

Showing alertbox after posting on Facebook SDK

I'm using Facebook Android SDK 4.+ to share photo by a button click in my app. When user click the button, it will open the Facebook share photo page. After posting the photo I want to show alertbox which telling that photo has succesfully…
BrenDonie
  • 85
  • 1
  • 10
2
votes
0 answers

How to upgrade API version in Swift Facebook SDK?

I am trying to upgrade Facebook API call version to 2.11 at the moment. I can set API version in Facebook developer site, app's page -> Settings -> Advanced -> Upgrade API Version -> Upgrade All calls (v2.11) and Upgrade Calls for App…
Yi Jiang
  • 3,938
  • 6
  • 30
  • 62
2
votes
1 answer

Facebook Single Sign On asks for credentials instead of permission

We have implemented Facebook login with Single Sign On in an iOS app. I have a user testing who is logged in with FB SSO in several apps. So I would expect this user to see the "Continue as [name]" -button, but instead he is asked to login with FB…
Jette
  • 2,459
  • 28
  • 37
2
votes
0 answers

iOS: How to share an local image on facebook with the SDK and without the facebook app installed?

I used that codes to publish an image without success: Code on button click: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = [UIImage imageNamed:@"Select.png"]; photo.userGenerated = YES; FBSDKSharePhotoContent…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
2
votes
1 answer

Xcode 8 and Swift Could not build Objective C module 'FBSDKLoginKit'

I am having an issue when integrating the latest Facebook SDK 4.16.0 in my Swift 3.0 project using XCode 8. I manually added Facebook SDK to my project Framework search paths I got a compiling error saying 'Could not build module…
HSG
  • 1,224
  • 11
  • 17
2
votes
2 answers

Facebook SDK Login callback is never called android

I am using the following code snippet in my Android app to allow users to login into my app using Facebook: public class FacebookLoginActivity extends AppCompatActivity { private CallbackManager callbackManager; @Override protected void…
eyadMhanna
  • 2,412
  • 3
  • 31
  • 49
2
votes
1 answer

:app:transformClassesWithDexForDebug while compiling Firebase

In my application, I want to use Firebase as back-end. I have given support of Facebook and Google login as well. Before adding Firebase in dependency, my project compiled successfully but after adding Firebase, I am getting this…
Shahzeb
  • 3,696
  • 4
  • 28
  • 47
2
votes
1 answer

Facebook SDK (android) login button not responding

I've created an app that uses the Facebook SDK for logging in, using the accepted code in this post: https://stackoverflow.com/a/30230718/4529864. It works great when deployed to my android phone (Nexus 4 with Lollipop, which has the facebook app…
IanS
  • 1,459
  • 1
  • 18
  • 23
2
votes
3 answers

I can't share images using the Share dialog

Ok guys I don't know what I am doing wrong and I am losing my mind over this issue.I just started using Facebook Android SDK and I have no Idea what I am doing wrong. I am developing a app which needs to share picture on Facebook.First I tried…
Birat Bade Shrestha
  • 800
  • 1
  • 8
  • 28
2
votes
0 answers

How make image sharing to Facebook with link back to content page in website/app like Instagram?

I am building an iOS app that let user created some type of images and when user finished doing that they can choose to publish it on their facebook timeline automatically. I am able to post to user's timeline automatically because user allow…