Is it possible to connect ad_id and adcreative_id, or we can connect only adset_id with adcreative_id?
And then every adsets's adcreatives_id distribute for every ad_id in this adset_id?
If it is possible to connect ad_id and adcreative_id, what fields we have to load?
Here is the doc for connecting ad to adcreate
https://developers.facebook.com/docs/marketing-api/reference/adgroup
Ad creative is under ad, so you will need to connect the ad through the param, e.g. in cURL:
-F "creative={'creative_id':<AD_CREATIVE_ID>}" \
Related
We are attempting to follow the advice given here to create an ad account for a 3rd party user, like this:
curl https://graph.facebook.com/v8.0/<BUSINESS_ID>/adaccount -F "name=ad account" -F "currency=EUR" -F "timezone_id=1" -F "end_advertiser=NONE" -F "media_agency=NONE" -F "partner=NONE" -F "access_token=<ACCESS_TOKEN>"
This command results in:
{"error":{"message":"(#270) Development access is not allowed to access business API post:Business\/adaccount.","type":"OAuthException","code":270,"fbtrace_id":"A0VK_j5lhkOXn0Cc5W9WZSx"}}
The BUSINESS_ID specified here is for our actual live (but not yet Facebook-validated) business, as we have been unable to find any explanation of how to obtain a test BUSINESS_ID for dev.
The goal here is to be able to create an ad account for an end user, which we will manage. The end user must not be able to modify the ad campaigns that we will eventually be creating via this account.
What are we doing wrong here?
It seems like your app is still in Development mode, which in the case of Facebook API, some of the permissions, they do not allow access when your app is in development mode. For example: when you need to receive notifications in your webhooks.
You can check your development mode in the developer dashboard. I think this is the issue in your case.
Currently, I can able to connect with strophe by giving jid and password in Angular project. But by giving jid and password is not safe. Instead of giving jid and password, is there any other way like JWT simple authentication? Ejabberd is hosted in local system with Windows OS.
I am looking for token based login.
this._xmppConnection = new Strophe.Connection("http://localhost:5280/bosh/", { 'keepalive': true });
this._xmppConnection.connect(jid, password, this._onConnect);
// working one
I am looking for connecting strophe using JWT token. Is there such support in ejabberd?
#sahal You can achieve that using other mediums of authentication eg. OAuth token
Generate OAuth token for user using ejabberd api.
endpoint: /api/oauth_issue_token
sample: curl -H "X-Admin: true" -X POST -u admin_jid:pass -d '{"jid": "user_jid", "ttl": 3600, "scopes": "connected_users_number;sasl_auth"}' http://ip:port/api/oauth_issue_token
While creating strophe instance pass option mechanisms as [Strophe.SASLXOAuth2]
While connecting replace password with your oauth token eg. connection.connect(jid, ejabberd_oauth_token)
After deploying my Flask app, I get the following error when trying to access the MongoDB service:
OperationFailure: not authorized on [db_name] to execute command ...
I understand this is because the db user does not have read/write access to the database. But I'm not able to create a new user or change permissions. db.grantRolesToUser() returns "not a function" and addUser() gives me no permission... What can I do?
You need to do two things:
Bind the app to the service using cf bind-service (or the web portal)
In the app, parse the VCAP_SERVICES environment variable to get the credentials
This will ensure you app gets readWrite permissions on your database.
Here's a few helpful links in this regard:
https://docs.developer.swisscom.com/devguide/services/application-binding.html
https://docs.developer.swisscom.com/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES
https://docs.developer.swisscom.com/service-offerings/mongodb.html
I'm attempting to set up a scheduled fetch for a product feed in Facebook Business Manager. From what I can see, I can provide an FTP link to Facebook along with credentials and it should pick up the file.
The FTP provider I'm using is ShareFile, with the appropriate account given access to the folder the file is in. I confirmed I can use these credentials and connect to the FTP using FileZilla, so that portion should be solid. The setup in FileZilla is as follows:
Host: host.sharefileftp.com
Protocol: FTP
Encryption: Require implicit FTP over TLS (port 990)
User: domain\facebookfeed#host.com
Password: ######
However, when I put the same credentials into Facebook Business Manager for the feed upload, I get the following error:
Fetching product feed from FTP server failed due to unknown reason
(Curl error code: 56). Please help us by reporting the problem. You
may be able to try again.
All I can find on this error is from the cURL error page:
CURLE_RECV_ERROR (56)
Failure with receiving network data.
I saw a mention somewhere about needing to whitelist Facebook's IPs within ShareFile, but I can't for the life of me find that page.
FTP Details are set up in Facebook as follows:
URL: ftp://host.sharefileftp.com:990/Path/To/File.csv
Username: domain\facebookfeed#host.com
Password: ######
I've been unsuccessful getting anywhere else with the Facebook documentation and I can't find a way to contact their support directly. If anyone has experience with this any help is appreciated!
EDIT: Trying this just with a direct cURL and getting the same results:
$ curl -u 'domain\facebookfeed#host.com' "ftp://host.sharefileftp.com:990/Path/To/File.csv"
Enter host password for user 'domain\facebookfeed#host.com':
curl: (56) response reading failed
So at this point it's probably just an issue with ShareFile itself, nothing to do with Facebook.
As #jared pointed out in the comments, using ftps did allow the cURL to work:
$ curl -u 'domain\facebookfeed#host.com' "ftps://host.sharefileftp.com:990/Path/To/File.csv"
However, Facebook doesn't support ftps. It only supports ftp or sftp, which ShareFile doesn't support.
The normal ftp I originally tried didn't work because the ShareFile account used didn't have normal ftp allowed. Once that was turned on, Facebook was able to connect to ShareFile and grab the file successfully.
I'm attempting to use http://code.google.com/p/gwt-oauth2/ to connect to Azure AD. I know I have the url & client ID (and I added the ability to add a response type and state to the outgoing URL) set correctly because I connected and got an authorization failure for my app, talked with the admins, got them to authorize my app, and now connect through.
The problem is that I get the error message "Could not find access_token in hash", followed by a completely empty hash, with the AD connect.
Google connect works just fine. For Azure AD I'm using "code" as the response_type and "oauth2" (I've also tried "openid", no difference) as the scope