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
11
votes
2 answers

How to get FB Ad Account Id via API?

With new facebook ads API. How do I find all the ad account ID's associated with a user? I see all the documentation about how to get details about an Account (given id). But I can not find how to get a User's ad account id (via…
user2720797
  • 111
  • 1
  • 1
  • 4
10
votes
4 answers

After Adding Facebook Android SDK dependencies i'm getting this error

After adding Android Facebook SDK dependencies compile 'com.facebook.android:facebook-android-sdk:4.21.0' I'm getting error in compile 'com.android.support:appcompat-v7:25.3.1' But Project is running fine. All com.android.support libraries…
Sujeet Kumar
  • 1,822
  • 22
  • 25
10
votes
12 answers

No such module 'FBSDKCoreKit' XCODE 7.4

I am trying to add the Facebook login feature using FBSDKCoreKit and FBSDKLogin. When I try to import these two framework to my AppDelegate file, it shows error which is "No such module 'FBSDKCoreKit'". I changed Allow Non-modular Includes In…
sekaisan
  • 441
  • 3
  • 8
  • 20
10
votes
5 answers

FacebookSDK gives 2 warnings in xcode6

I just update to Xcode 6 and now in the FacebookSDK.framework > Headers > FBOpenGraph.h I have 2 warnings one that reads 'atomic' attribute on property 'description' does not match the property inherited from NSObject And the second reads 'copy'…
iqueqiorio
  • 1,149
  • 2
  • 35
  • 78
9
votes
5 answers

Swift Open Facebook Profile by FacebookUID

I'm trying to open a user's Facebook profile in Swift using their Facebook UID. In the Simulator, it works and opens up the web version of the profile and works fine, however on my actual device, it opens up the Facebook native app and gives me a…
Thomas
  • 2,356
  • 7
  • 23
  • 59
9
votes
2 answers

Xcode memory warning - could not load any Objective-C class information

I've been getting this error only on an old iPhone4s while logging the user with Facebook and Parse. When I run it on simulator this error never happen. When it happens the app has taken only 21.2MB from memory that is just 4.2% of the memory…
GuiSoySauce
  • 1,763
  • 3
  • 24
  • 37
9
votes
3 answers

iOS 9 Facebook SDK Login/Share

I have run into an issue using the latest Facebook SDK (4.6) on iOS 9. To authorize a user, I use the FBSDKLoginManager. I have tried setting this: loginManager.loginBehavior = FBSDKLoginBehaviorNative; But the SDK still seems to always use an…
haplo1384
  • 1,206
  • 1
  • 12
  • 29
9
votes
1 answer

Google Play URL messes up Facebook's share dialog

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))…
erdomester
  • 11,789
  • 32
  • 132
  • 234
9
votes
1 answer

Android Facebook SDK 4.0.0 Sharing callback doesn't work properly

I am using following code to share link on facebook. when user click on cancel on Share dialog interface,onSuccess() callback method is called sometimes instead of onCancel(). And getting post id null.Please help me what's going wrong? …
Harshal Bhatt
  • 731
  • 10
  • 25
9
votes
3 answers

Android Facebook Login "LoginActivity could not be started"

I have installed and configure everything for link The Facebook SDK to my Android App. Facebook SDK is in my project I added my APP ID in the Facebook APP ID My Android Key Hash is correct and linked on the board of Facebook Dev I have the Activity…
Antoine Draune
  • 323
  • 1
  • 3
  • 12
8
votes
3 answers

Facebook SDK : 'Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared'

I use the Android Facebook SDK. I get the following message in Logcat: com.facebook.internal.NativeProtocol: Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared. Please…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
8
votes
3 answers

How to write a post on facebook using python

I have tried with a sample code that I found on google.. import facebook def main(): # Fill in the values noted in previous steps here cfg = { "page_id" : "XXXXXXXXXXXXXX", # Step 1 "access_token" :…
sowmya
  • 221
  • 1
  • 3
  • 15
8
votes
3 answers

Android manifest merger with facebook and firebase libraries

I've imported in my project 2 libraries (in gradle file): ... /* Firebase UI */ compile 'com.firebaseui:firebase-ui:0.4.0' /* Facebook login */ compile 'com.facebook.android:facebook-android-sdk:4.13.0' but when building my project I have the…
8
votes
4 answers

Questions about Development and Release Key Hashes for Facebook SDK for Android

I read the guides in the FB Developer website. To create a Development Key Hashes keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 And to create a Release Key Hashes keytool…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
8
votes
3 answers

Facebook Audience Network returns error "Ad was re-loaded too frequently"

I try to add Facebook banner to my Android App. It works good with my LG D-405, but returns "Ad was re-loaded too frequently" with Samsung Galaxy S5. adView = new AdView(getActivity(), "-------", AdSize.BANNER_HEIGHT_50); …
Viktor Sinelnikov
  • 1,631
  • 2
  • 16
  • 26