facebook-sdk-4.0

I am getting an error when using the facebook api

限于喜欢 提交于 2021-01-27 20:45:44
问题 File "SAMPLE_CODE.py", line 21, in <module> from facebookads.adobjects.adaccount import AdAccount File "/usr/local/lib/python3.7/site-packages/facebookads/adobjects/adaccount.py", line 1582 def get_insights(self, fields=None, params=None, async=False, batch=None, pending=False): ^ SyntaxError: invalid syntax I am trying to use the Facebook API and I am getting this error. Not sure what to do about it. This is my first time setting up and trying to use this API. Any help would be appreciated

The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first

时光总嘲笑我的痴心妄想 提交于 2020-02-03 08:15:32
问题 I have this error when implementing the Facebook SDK and i tried - many of the - solutions but none of then worked. This is what i have: @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); callbackManager = CallbackManager.Factory.create(); setContentView(R.layout.activity_name_layout); LoginButton loginButton = (LoginButton)findViewById(R.id.fb_login_button); loginButton

Facebook Banner Ad Issue in Unity

放肆的年华 提交于 2020-01-24 21:45:32
问题 I am using the facebook audience network in Unity for advertisement. I am currently facing an issue while showing facebook banner ads in unity. Just when i call banner ad show call. Exception triggers: java.lang.illegalargumentexception: adsize at com.facebook.ads.redexgen.x.8h.(:18251) Anybody knows how can I resolve this issue? Thanks in advance 回答1: I am also facing banner loading issue E/Unity (27746): AndroidJavaException: java.lang.IllegalArgumentException: adSize E/Unity (27746): java

Facebook sdk not working if I place the sdk folder inside react-native project?

徘徊边缘 提交于 2020-01-15 10:57:11
问题 I am wanting to manually link the Facebook SDK because we don't use cocoapods & don't want to implement it. But for some reason when we build our app on buddybuild, it will fail. What I've done is placed the FacebookSDK folder inside (not an optimal solution I know): ios/<ProjectName>/FacebookSDK I added this folder ( $(SRCROOT)/ios/<ProjectName>/FacebookSDK) to the framework search header paths & it still seems to throw errors. 1850 ▸ Compiling RCTFBSDKShareDialog.m 1851 » In file included

Facebook returning error '(#200) Requires extended permission: publish_actions' even after getting 'publish actions' permission approved

被刻印的时光 ゝ 提交于 2020-01-13 16:25:10
问题 Hi I got ' publish_actions ' permission approved for my Facebook App. But when any user accessing this app, it is not prompting for 'post on your behalf on Facebook' permission. Unless this when any user try to comment on Facebook using this app, Facebook returns error stating: '(#200) Requires extended permission: publish_actions' OR 'The remote server returned an error: (403) Forbidden'. Can any one please help me in this? Thanks in advance. 回答1: This error is thrown when you are using

Facebook Login SDK in IOS 9

纵然是瞬间 提交于 2020-01-13 04:28:48
问题 I am using the facebook login SDK. It is working perfectly in IOS 7, 8 and 9. But if phone have the facebook app login verification is open the app in iOS 7 AND 8. BUT IOS 9 not open the facebook app. It is open the browser (Web page) and doing the verification. What is the reason? Anybody have any idea? Edited FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [FBSDKProfile enableUpdatesOnAccessTokenChange:YES]; [login logInWithReadPermissions:@[@"public_profile", @"email"]

Description not shown in Facebook ShareDialog

℡╲_俬逩灬. 提交于 2020-01-11 06:39:55
问题 I am trying the ShareLinkContent using the ShareDialog from Facebook in my Android App. Following is the code snippet I have used. I have the content title and the description as it is needed for the post. It is fine while is show in the mobile while I try to post it.But When I see the post in the facebook it is different. Hope it is picking it from the google play store. Please help to resolve this s that I can see the description and the tilte that I have set it in the share dialog

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

断了今生、忘了曾经 提交于 2020-01-10 02:44:07
问题 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(); if(AccessToken.getCurrentAccessToken()!=null){ Log.d(FBTAG,"facebook already logged in"); isFBLogin = true; } LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { // App

How can I install the facebookconnect cordova plugin?

那年仲夏 提交于 2020-01-05 07:49:10
问题 I am trying to use the com.phonegap.plugins.facebookconnect plugin. To install it, I must provide two variables, like this: cordova plugin add com.phonegap.plugins.facebookconnect --variable APP_ID="<app_id>" --variable APP_NAME="<app_name>" This works, but then the build fails because of this issue. BUILD FAILED /Applications/Android Studio.app/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Applications/Android Studio.app/sdk/tools/ant/build.xml:734:

Facebook login fails (always isCancelled) after upgrading to SDK 4.1

橙三吉。 提交于 2020-01-03 10:54:14
问题 I have upgraded Facebook SDK from 3.21.1 to 4.1 in an iOS app (already live). I followed carefully the upgrade guide, and implemented the new methods for login. The code I used is the one provided in Facebook documentation. But since the upgrade, each time I try to log in (device or simulator, webview or Facebook app), I can go through the login flow successfully, but when I fall back on my app, the login does not return any error but returns a FBSDKLoginManagerLoginResult "isCancelled". As a