Greetings, esteemed public! Here's Yellow, and today we're going to take a look at adding comments to our promotional posts.
I'm a bit surprised that the arbitration community, which is actively interested in the possibilities of Facebook API, still does not have a suitable recruiting software, although the idea seems to be on the surface. Hopefully, after this article is published, these tools will appear on the market.
So, I responsibly declare that by the end of this reading, you will have a simple way to get the hang of it, with which you can immediately get down to business!
What we'll need:
- Several autoregs, with uploaded avatar and with a name for the desired GEO (in the CIS - with Russian, the burg with names in Latin)
- Access Tokens from each of these autoregs
- The post ID of your ad
- Identifier of the fp where the post is posted
- The CURL program with which we will send requests
- Comment texts
If with the first two points everything is clear, then with the rest let's deal in detail.
Getting the post identifier of the commitment
Inside fb, every ad "belongs" to the fp from which you spin it. That is, it is essentially a post on the ffp. To get the post ID, go to Page Posts in the menu, select your ad and see:

At the same time, right there you can get the fp identifier: move your mouse to ... in the upper right corner and see a link at the bottom that says context_id=1111111 this will be the id of our fp.

Publish a comment using CURL
We have almost everything ready to publish our first comment. To send requests to the API we will use the console program CURL. On mac it's built-in by default, so we just run Terminal. And for Windows download CURL from here and unzip the archive into any folder, then run the console (Start-Run-cmd-Enter) and navigate to this folder (cd Full_Way_to_Folder).
Let's go! Copy the request below into a notepad somewhere and fill it with all the necessary data: fp id, post id, token, comment. Then copy the completed template into the console and press Enter.
curl -X POST "https://graph.facebook.com/v6.0/fpId_postId/comments?access_token=token" -H "Content-Type: application/x-www-form-urlencoded" -d "message=Thank you"
If successful, you will see in the console a response from fb, in which the id of your new published comment will be written:

You will also see this comment right on the Page Posts page:

All you have to do is fill in one by one and type a command for each of your autoregs into the console and get the number of comments you want. ?
I hope it was helpful! If you enjoyed this article, don't forget to throw in donateThe project exists only because of them. And, of course, pour into the plus, my ass!
P.S. In the screenshots. my stepfather's paintings, he is a professional painterIf you need a chic gift, or you want to decorate the interior of your home/apartment - write to the LS, this is the top!
There is no information about getting an asses token.
Well, come on, this is not a kindergarten class. The information is publicly available and generally known.
Well, about the id of the post and FP, and the token immediately "kindergarten"
Okeye, here's
The following error pops up
curl: (1) Protocol "
Replace the quotation marks with regular quotes
Good afternoon, thanks for the article! Very good information :) Ran into a difficulty. I took all the necessary data fp id, post id, access token and made a comment. I tried to run cmd both as administrator, but I keep getting this error curl: (1) Protocol "<https" not supported or disabled in libcurl
replace the quotation marks with plain quotes
corrected the post
Is there one for insta?
Yes, it's the same, but you have to get the fp id in a different way.
Is it possible to upload images to the comments in the same way?
Yes, of course you can. https://developers.facebook.com/docs/graph-api/reference/v7.0/object/comments Here's all the documentation. In short: you just add &attachment_url=https://адрес_к_твоей_картинке.jpg
I do not know, maybe it was a coincidence - but after entering the command in the console knocked out a three-story error. After that, the account from which the ad was running dropped out on the check )))))))))
Could it be because I used this method of scamming comments ?
I don't think so. But if anything, here's not to bother with the console, have already made ready-made software: https://vk.com/wall-181034601_4212
Thank you )) Saw this article ! Now I will try through the software to add comments ))))
It worked! Only instead of Russian letters - strange rhombics in black triangles. English letters - normal display. Does anyone know how to fix it?
-H "Content-Type: application/x-www-form-urlencoded; charset=utf-8"
Try adding that to the query.
I don't understand what the problem is(( I'm doing everything right, according to the instructions, press enter and I get this (zsh: no matches found:)
Not enough video tutorials for the mac (two days sitting around, I do not even know where else to look for information)
I'm all about the wind.
Does the theme still work or not?
works
Is this method up to date? I can't publish a comment, I get errors.
tried it with proxy and without
curl POST https://graph.facebook.com/v6.0/***_***/comments?access_token=*** -H "Content-Type: application/x-www-form-urlencoded" -d "message=Thank you"
curl -X socks5://***:*** -u ***:*** POST "https://graph.facebook.com/v6.0/***_***/comments?access_token= ***" -H "Content-Type: application/x-www-form-urlencoded" -d "message=Thank you"
Hi. Well first of all you need to use the latest version of api, not 6.0 and + now you need to send all cookies from the account in addition to the token.