Seems this is a commun issue when using Facebook APIs. I am trying to use the ads API using Python. When I am testing it using the Graph API Explorer, I have the version 9.0 and I am not getting any errors. I am trying to implement the API call using Python but when I am specifiying the version 9.0, I am getting this error log:
facebook.GraphAPIError: Valid API versions are '2.8', '2.9', '2.10', '2.11', '2.12', '3.0', '3.1'
My code:
import facebook
token = "<token>"
graph = facebook.GraphAPI(access_token=token, version="9.0")
events = graph.request("?ids=<id>")
print(events)
But when I am using the version 3.1 or < than 3.1, I am getting another error:
facebook.GraphAPIError: (#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v9.0.
How can I fix it?
Seems related to an older SDK (see the code on github)
I suggest you to update to the official Facebook SDK for Python
Related
Sentry latest version is incompatible with http plugin and if another version of sentry is used then it is also not compatible with rest of the other already used packages in project.
Even without version I tried to get its compatible version but this also not worked.
This is because Sentry uses http: ^0.13.0 because that's the earliest version which is null safe. The user uses a pretty outdated version of http.
Got the reply from GitHub: https://github.com/getsentry/sentry-dart/issues/694
My Android app worked well with Huawei Map SDK 5.0.0 or lower version. When upgrading to Map SDK 5.0.1 or above version however, I get the error: package com.huawei.hms.maps.util does not exist when using:
import com.huawei.hms.maps.util.LogM;
import com.huawei.hms.maps.util.AssetBitmapDescriptor;
I tried several solutions, but none of them worked. Can someone help?
To resolve the issues on your Android app when using Huawei Map SDK 5.0.1 or above, you need to do the followings:
use Android API android.util.Log to replace com.huawei.hms.maps.util.LogM
for com.huawei.hms.maps.util.AssetBitmapDescriptor, use the corresponding method in BitmapDescriptorFactory to replace it. Please refer to the links for details:
Link 1 and link2.
Tooleap API crashing on marshmallow device?what is the compatibility of this API?
Blockquote
Tooleap Api is compatible with Marshmallow devices. Without getting more details on the exact error you're getting I cannot help you, but your error might have something to do with the SYSTEM_ALERT_WINDOW permission that requires a special treatment with Android 6.0.0 devices.
You can check out this post for more details:
SYSTEM_ALERT_WINDOW - How to get this permission automatically on Android 6.0 and targetSdkVersion 23
I've just updated GoogleSignIn from CocoaPod, and now I can't build my app.
Error message shown is :
Google Sign-In requires iOS SDK 9.0 or above. Please update to the latest Xcode at https://developer.apple.com/xcode/
However my Xcode version is 7.0.1.. Any ideas ?
I'm trying to create a Firefox add-on using Mozilla's Add-On Builder, but when I try to use simple code from the documentation:
var sidebar = require("sdk/ui/sidebar").Sidebar({
id: 'my-sidebar',
title: 'My sidebar',
url: require("sdk/self").data.url("sidebar.html")
});
I receive the following error:
"ModuleNotFoundError: unable to satisfy: requries(sdk/ui/sidebar) from ....."
Currently I'm using the default SDK 1.14 in the Add-On Builder
This is because Builder has not been updated since SDK 1.14 and is attempting to find the sidebar library which is only available in Firefox 26.
My best suggestion would be to download the current beta of SDK 1.15 and use the command-line:
https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.15b1.zip
Once you have downloaded the SDK, please see the installation documentation for how to get things going:
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/installation.html