Posts tagged with facebook-business-manager

i am trying to add a business manager to the partner account for another business page via facebook api, i have tried several apis, but failed. I want to grant access to facebook page.

Below are some of the apis i used in postman:

https://graph.facebook.com/v17.0/page-id/assigned_users?user=TO_WHOM_PERMISSION__WILL_BE_GRANTED&business=PAGE_BUSINESS_ID&access_token=TOKEN_OF_PAGE_OWNER&tasks[]=MANAGE https://graph.facebook.com/v17.0/BUSINESS_MANAGER_ID/owned_pages https://graph.facebook.com/v21.0/BUSINESS_MANAGER_ID/managed_businesses?existing_client_business_id=BUSINESS_ID&access_token=TOKEN_OF_OWNER 

But nothing worked, My main motive is to give access of facebook page to some other business manager by adding him to partner account, Do anyone have any idea how it can be done via api, any small help will be really appreciated, thanks in advance !!!

Goal: I want to provide WhatsApp messaging feature within my android app for my customers to send messages to their customers, and without my customers intervention in terms of any accounts setup/embedded signups for them. Because my customers won't use this feature if they need to invlove in the setup process that Meta docs are suggesting as a solution or tech provider. So I want to use my own setup and WABA account so that my customers can use this feature right way.

My Setup:

  1. Meta developer account is created.

  2. Meta business manager is created.

  3. Meta app is created and linked to business portfolio.

  4. My business verification is successfully completed.

  5. WABA Account is created and my new business phone number is added and Webhooks setup also done.

  6. Access Verification is not done as I am not going to deal or create my customers WABA accounts.

  7. App Review submission is failed as I didn't provide FB Login button and now I think I understood why FB login is needed and now I don't want my customers fb login intervention as it is going to come to the concept of dealing customers WABA accounts in the end.

  8. Added Phone number is in unavailable status, its registration is failing because of on premises api expiration and struggling to do it with Cloud API endpoints like /wabaId/phone_numbers, /request_code, /verify_code etc and now I completely got stuck and confused on how to register business phone number with certificate code and without issues.

Test implementation in the app:

  1. Multiple messaging templates are created and available to use.
  2. We are able to send whatsapp messages using templates created to the mobile numbers added in the test list in development mode.

Problems/Concerns/Queries To achive my goal mentioned above:

  1. Is my goal achievable?
  2. How to register added business phone number using certificate code as per latest docs/changes?
  3. Does it require access verification to register business phone number?

Please help me with my goal and what else I need to do or am I missing anything?

Currently added business phone number is in unavailable status and need to get it to active status.

I am assuming that I don't need to go through access verification and app review process as I'm not going to deal customers individual setup/waba accounts.

I am expecting to use my business phone number id with permanent access token to make graph API /messages calls and send messages to customers of my customers. This will be triggered by my customers through my android app.

We are trying to get an list of Instagram accounts associated to a Facebook business account. The endpoint we are trying to call is: https://graph.facebook.com/v20.0/<business_id>/owned_instagram_accounts?access_token=<access_token>

When using an account which has a developer role in the app the call returns a 200 as expected. But when we use an external account we get the following error:

"error": {     "message": "Unsupported get request. Object with ID '951060758639721' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api",     "type": "GraphMethodException",     "code": 100,     "error_subcode": 33,     "fbtrace_id": "APTgzDN8PxkeXGu_IZ7HS3q" } 

These are the permissions we have granted and which we all have advanced access from facebook: email, catalog_management, pages_show_list, ads_management, business_management, instagram_basic, pages_read_engagement, public_profile.

Our app is also in live mode.

Does anyone know what we are doing wrong or what we are missing?

We tried everything we know of, tried multiple methods. have requested access to multiple permissions but nothing seems te be working

I am able to create new business manager using graph api exploror by using below api

POST https://graph.facebook.com/v20.0/{user-id}/businesses {"name":"","vertical":""} 

I am trying to do same by using system-user-access-token which has business_management permission still i always end-up with An unknown error has occurred

{     "error": {         "message": "An unknown error has occurred.",         "type": "OAuthException",         "code": 1,         "fbtrace_id": "AJLLEHScJ2XZs2Zfc6LSiOP"     } } 

Is there any way to create business manager using system-user access-token