Posts tagged with post

Following facebook's GraphAPI docs, i got a post request as seen below:

https://graph.facebook.com/v20.0/{pageid}/photos?access_token={here I insert a permanent PAGE token}&url={here i insert a url of a image that does exist} 

The response of this post request is:

 "error": {     "message": "(#200) The permission(s) publish_actions are not available. It has been deprecated. If you want to provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.",     "type": "OAuthException",     "code": 200,     "fbtrace_id": "Asd0O0G-dN02eCY9jLJjQGG"   } } 

Using the answers from others having the same error, I tried using permanent and short-term USER/PAGE access tokens. All resulted in the exact same error

My project is to post on Facebook using open ai generated content and I created a developers account along with a new Facebook account I need page access token and permissions but the only permissions allowed to me are email, public and payment permissions and I can't get access to page access token and I don't know how to set api endpoint here for redirect url.

I tried making the model that generates the caption but I can't put it here it shows error of not having the valid token

I'm getting an error while posting a review on Facebook page using a "POST" method.

{ "error": { "message": "Unsupported post request. Object with ID '311823882006106' 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": "Ar6_ieLkr0wegRXZ4uQtkoG" } }

But it was working good when I'm getting a review from Facebook page by using "GET" method

I just want to Post a reviews

I'm using Python to create a script that allows me to create a label in the inbox (for a Facebook page), and then associate or tag a user with a specific label.

This is the function I made:

def associate_label_to_user(recipient_id, label_id, access_token): url = f"https://graph.facebook.com/v19.0/{label_id}/label?access_token={access_token}" data = {     "user": recipient_id } response = requests.post(url, json=data) response_json = response.json() # print(response_json) if response.status_code == 200:     success = response_json['success']     if success:         print("[LOGS] Association of label to user successful") else:     print("[LOGS] Error associating label to a user") 

I'm reading their documents here https://developers.facebook.com/docs/messenger-platform/identity/custom-labels/, and I'm not experiencing any other problem.

Whenever I run the script, it works (I see the user being labeled correctly), but I'm getting this error in return:

{'error': {'message': 'Unsupported request - method type: post', 'type': 'GraphMethodException', 'code': 100, 'fbtrace_id': 'ApHRHoVZFM_BUqHpOs3KdKX'}} 

I don't understand what this means, when it works for me anyway.