Upload images to Facebook using Facebook Business SDK's
- or -
Post a project like this2025
$$
- Posted:
- Proposals: 5
- Remote
- #2146809
- Completed
Description
Experience Level: Intermediate
We are upgrading to the new Facebook Business SDK: https://developers.facebook.com/docs/business-sdk/getting-started/
We have completed the install via pip and are trying to execute the test.py file:
import sys
sys.path.append('/opt/homebrew/lib/python2.7/site-packages') # Replace this with the place you installed facebookads using pip
sys.path.append('/opt/homebrew/lib/python2.7/site-packages/facebook_business-3.0.0-py2.7.egg-info') # same as above
from facebook_business.api import FacebookAdsApi
from facebook_business.adobjects.adaccount import AdAccount
my_app_id = 'your-app-id'
my_app_secret = 'your-appsecret'
my_access_token = 'your-access-token'
FacebookAdsApi.init(my_app_id, my_app_secret, my_access_token)
my_account = AdAccount('your-adaccount-id')
campaigns = my_account.get_campaigns()
print(campaigns)
And getting the following error back from Facebook:
message": "Unsupported get request. Object with ID '****************' 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"
We need someone who has had experience in the new Facebook Business format to assist with guidance.
Our end goal is to be able to upload images to Facebook and get back a hashed image name.
We have completed the install via pip and are trying to execute the test.py file:
import sys
sys.path.append('/opt/homebrew/lib/python2.7/site-packages') # Replace this with the place you installed facebookads using pip
sys.path.append('/opt/homebrew/lib/python2.7/site-packages/facebook_business-3.0.0-py2.7.egg-info') # same as above
from facebook_business.api import FacebookAdsApi
from facebook_business.adobjects.adaccount import AdAccount
my_app_id = 'your-app-id'
my_app_secret = 'your-appsecret'
my_access_token = 'your-access-token'
FacebookAdsApi.init(my_app_id, my_app_secret, my_access_token)
my_account = AdAccount('your-adaccount-id')
campaigns = my_account.get_campaigns()
print(campaigns)
And getting the following error back from Facebook:
message": "Unsupported get request. Object with ID '****************' 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"
We need someone who has had experience in the new Facebook Business format to assist with guidance.
Our end goal is to be able to upload images to Facebook and get back a hashed image name.
Robin M.
100% (22)Projects Completed
17
Freelancers worked with
14
Projects awarded
63%
Last project
29 Jan 2021
South Africa
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies