Posts under category facebook-graph-api

I'm developing a SaaS where users can select from a variety of templates and publish their Facebook ads. I'd like to have a separate Ad Account for each user so if there is a problem with one ad account this will not negatively affect all software users.

In my business manager it shows me that my ad account limit is 22. We are expecting close to a hundred users after releasing the platform.

Question Will the limit increase once the app has been verified by Facebook? Or is there a workaround? I've also been thinking about creating a Business Manager + Ad Account per user but I'm not sure if this will result in loss of control or which consequences this may have. I have already contacted the Facebook support but they have not been helpful.

Any ideas?

The result I get from ID

Code

  public String upVideoJson(String token, String mess, String urlVideo, String times) {     String url = "https://graph.facebook.com/v20.0/me/videos";     HttpClient httpClient = HttpClients.createDefault();     String videoId = null;     try {         HttpPost httpPost = new HttpPost(url);         MultipartEntityBuilder builder = MultipartEntityBuilder.create();         String encodedMess = new String(mess.getBytes("UTF-8"), "ISO-8859-1");         builder.addTextBody("access_token", token, ContentType.TEXT_PLAIN);         builder.addTextBody("description", encodedMess, ContentType.create("text/plain", "ISO-8859-1"));         builder.addTextBody("file_url", urlVideo, ContentType.TEXT_PLAIN);         if (StringUtils.hasText(times)) {         builder.addTextBody("scheduled_publish_time", times, ContentType.TEXT_PLAIN);         builder.addTextBody("published", Boolean.toString(false));         }         HttpEntity multipart = builder.build();         httpPost.setEntity(multipart);         HttpResponse response = httpClient.execute(httpPost);         HttpEntity responseEntity = response.getEntity();         String responseString = EntityUtils.toString(responseEntity);         JSONObject jsonResponse = new JSONObject(responseString);         if (jsonResponse.has("id")) {             videoId = jsonResponse.getString("id");         } else {             System.out.println(token);             System.out.println(jsonResponse);         }     } catch (IOException e) {         throw new CustomException();     }     return videoId; } 

I scheduled the post but until now it still hasn't appeared on the Facebook page. When I use the ID to get the permalink_url, only I can see the video, like published = false. Can anyone help me solve the problem?

We have an app that makes posts to a page under a Facebook account. We use Facebook Login to get permission to do so. This app will be used by many of our clients, each of whom gets a subdomain under ihouseelite.com. Since we are using the Javascript API for login, we need to set the "Allowed Domains for the JavaScript SDK" value. We used to be able to use wildcards for this values ( "https://*.ihouseelite.com), but that has been disallowed. We currently have over 1000 customers, and hopefully will be adding more.

Can we update this value programmatically? I tried using app_domains from this page:

https://developers.facebook.com/docs/graph-api/reference/application/#parameters-3 curl -i -X POST "https://graph.facebook.com/APP_ID? app_domains=DOMAIN_LIST&access_token=APP_ACCESS_TOKEN 

But that changes the App domain, not the allowed javascript domains value.

I manage several Businesses and Pages.

When requesting the API for conversations I get an error for some pages and success for other pages.

The endpoint I'm requesting is: https://graph.facebook.com/v20.0/${page_id}/conversations?access_token=${access_token}&fields=${fields}

Fields:

name,id,updated_time,messages{created_time,from,id,message,attachments.limit(10) {file_url,video_data,size,name,mime_type,image_data,id,generic_template},to},participants

(Changing API version does not change the outcome).

The error that I'm receiving is:

{ "message": "An unexpected error has occurred. Please retry your request later.", "type": "OAuthException", "is_transient": true, "code": 2, "fbtrace_id": "Ak6OZA72-efdE-2Ko9NqSgy" } 

Graph Explorer returns the same error/result for the specific pages. Some returns conversations while other return the mentioned error.

Does anyone know what causes these errors?

I haven't made any changes to my code. The request was consistently working for a while, but recently it started giving these errors for some pages.

Earlier Facebook Graph API would always return conversations as expected.