I am having an issue running the code that seems to indicate a recent update to api or facebook new pages experience is breaking the script.
lightrelic@LIGHTRELIC fb-post-bulk-privacy-edit-master % python process.py Starting from time.struct_time(tm_year=2023, tm_mon=11, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=305, tm_isdst=0) Get postids failed {"error":{"message":"Permissions error","type":"OAuthException","code":200,"error_subcode":2069030,"is_transient":false,"error_user_title":"New Pages Experience Is Not Supported","error_user_msg":"This endpoint is not supported in the new Pages experience.","fbtrace_id":"AC0tZBt0KybQ3dLDvE6gfKJ"}} Traceback (most recent call last): File "process.py", line 51, in <module> d = json.load(res) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/__init__.py", line 291, in load **kw) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
From Google:
AI Overview
The provided error message indicates a Facebook API permissions issue related to the "New Pages Experience."
Code
{
"error": {
"message": "Permissions error",
"type": "OAuthException",
"code": 200,
"error_subcode": 2069030,
"is_transient": false,
"error_user_title": "New Pages Experience Is Not Supported",
"error_user_msg": "This endpoint is not supported in the new Pages experience.",
"fbtrace_id": "AuX-wpxh9WcF2vCmGDxa-mr"
}
}
This error, specifically error_subcode: 2069030, signifies that the API endpoint being used is not compatible with the "New Pages Experience" on Facebook. This often happens when an application attempts to interact with a Facebook Page that has been migrated to the newer page management system, using an older API version or an endpoint that has been deprecated or modified for the new experience.
To resolve this, the following actions are generally recommended:
Update API Integration: Ensure that the application or integration interacting with the Facebook Page is using the latest version of the Facebook Graph API and is updated to support the "New Pages Experience." This may involve updating SDKs or modifying API calls.
Review Permissions: Verify that the application has all necessary permissions granted to access and manage the Facebook Page within the context of the "New Pages Experience." Re-authorizing the application and granting all required permissions can sometimes resolve this.
Consult Facebook Developer Documentation: Refer to the official Facebook Developer documentation for specific guidance on working with the "New Pages Experience" and any changes to API endpoints or permissions. This will provide the most up-to-date information on compatible methods.
I am having an issue running the code that seems to indicate a recent update to api or facebook new pages experience is breaking the script.
lightrelic@LIGHTRELIC fb-post-bulk-privacy-edit-master % python process.py Starting from time.struct_time(tm_year=2023, tm_mon=11, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=305, tm_isdst=0) Get postids failed {"error":{"message":"Permissions error","type":"OAuthException","code":200,"error_subcode":2069030,"is_transient":false,"error_user_title":"New Pages Experience Is Not Supported","error_user_msg":"This endpoint is not supported in the new Pages experience.","fbtrace_id":"AC0tZBt0KybQ3dLDvE6gfKJ"}} Traceback (most recent call last): File "process.py", line 51, in <module> d = json.load(res) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/__init__.py", line 291, in load **kw) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Users/lightrelic/.pyenv/versions/2.7.18/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decodedFrom Google:
AI Overview
The provided error message indicates a Facebook API permissions issue related to the "New Pages Experience."
Code
{
"error": {
"message": "Permissions error",
"type": "OAuthException",
"code": 200,
"error_subcode": 2069030,
"is_transient": false,
"error_user_title": "New Pages Experience Is Not Supported",
"error_user_msg": "This endpoint is not supported in the new Pages experience.",
"fbtrace_id": "AuX-wpxh9WcF2vCmGDxa-mr"
}
}
This error, specifically error_subcode: 2069030, signifies that the API endpoint being used is not compatible with the "New Pages Experience" on Facebook. This often happens when an application attempts to interact with a Facebook Page that has been migrated to the newer page management system, using an older API version or an endpoint that has been deprecated or modified for the new experience.
To resolve this, the following actions are generally recommended:
Update API Integration: Ensure that the application or integration interacting with the Facebook Page is using the latest version of the Facebook Graph API and is updated to support the "New Pages Experience." This may involve updating SDKs or modifying API calls.
Review Permissions: Verify that the application has all necessary permissions granted to access and manage the Facebook Page within the context of the "New Pages Experience." Re-authorizing the application and granting all required permissions can sometimes resolve this.
Consult Facebook Developer Documentation: Refer to the official Facebook Developer documentation for specific guidance on working with the "New Pages Experience" and any changes to API endpoints or permissions. This will provide the most up-to-date information on compatible methods.