instagram api delete comment endpoint - instagram

I am trying to delete comment on Instagram with api but I got error. I dont want to post a comment only delete. So, Do I need to fill this form:
https://help.instagram.com/contact/185819881608116
Also, app is still under development in fact there is no app right now. How can I fill this form do you have experience about that? If they dont give me authorization then I dont want to start development anyway.
Please any suggestions. Thanks in Advance.

You don't have to be authorized to delete a comment.
You probably get error following reasons;
Your app user didn't give comments permission
You try to delete a comment which you can't
You try to delete comment by http post or http get in your api call. you must use http delete method

Related

How to get my user id and posts from username on Instagram?

Due to recent changes on API Instagram, it is not possible to use the endpoint above:
https://www.instagram.com/{username}/?__a=1
I've tried with:
https://i.instagram.com/api/v1/users/web_profile_info/?username=username
However, it is not working correctly to fetch data. Please, could someone help to find a solution?
In advance, thank you very much.
The API endpoint https://i.instagram.com/api/v1/users/web_profile_info/?username=username does in fact work if the client has the X-IG-App-ID request header set. This header value can be obtained by inspecting the request sent via any web browser.
Try with this endpoint if your account is a business account.
https://graph.instagram.com/me/media?fields={id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username}&access_token=""

I set my telegram bot webhook, but do not send the telegram. Why?

I set webhook my telegram bot with setwebhook method but when I send a message in bot don't take this in my URL.
https://api.telegram.org/bot<token>/setwebhook?url=https://www.example.com/bot/temp.php
In my host I use PHP language for take and analysis and answer that. and I user this command for get updates from bot.
$update = file_get_contents(“php://input”);
But after run this line $update is empty.
I haven't problem with take updates without setwebhook bot when I use webhook don't take data.
result run getWebhookinfo is:
{"ok":true,"result":{"url":"https://example.com/bot/temp.php","has_custom_certificate":false,"pending_update_count":0,"max_connections":40}}
Do I have to be true "has_custom_cere"?
Thanks for help me
Mohammad, I think a PHP error occurred when telegram sends the request to you. Following code should works fine for getting the Telegram request.
$json = file_get_contents('php://input');
$request = json_decode($json);
I think your script stop before this code. I suggest you to enable PHP debug mode and check the error log.
You can find out problem via following method:
Check getWebhookInfo method, make sure your webhook URL is correct, and no last_error_message field.
POST similar data to your server, here is some data you can use in curl -d JSON, just copy it and run on your own server.
At last, check your CDN config (if you had applied on that server), temporary disable flooding or any check.
What is the outcome of the /getwebhookinfo method and could you post it here?
Please check if you SSL certificate valid (happend once to me) and what shows if you call the website in your browser (any php errors?).
I would have commented that, but I don´t have enough rep... Sorry :/
Please follow this way and if you don't get answer, your PHP has problem :
1- Revoke your Auth Key from BotFather by typing /revoke
2- Reset your Webbhook by new Auth Key :
https://api.telegram.org/bot<token>/setWebhook?url=https://www.website.com/bot_path
Notice #1 : setWebhook is case sensitive and W keyword must be capital.
Notice #2 : If you're using CMS such as Codeigniter, Laravel, Zend etc. It doesn't need to put .php after your bot_path and if not use it.
Notice #3 : If you want to delete last Webhook that you have set, You just need to write above url without ?url= at the rest.
3- After all you receive this message from telegram :
{"ok":true,"result":true,"description":"Webhook was set"}
Now you can test your Bot, But be aware that do this way to check your Auth Key and If there is no problem, absolutely your PHP code has problem. If you have problem yet please contact me on website to solve it Graphap and then put the right answer here.
I've told to recheck this way because I had problem frequently because of Auth Key which not working But now it works as well.

OAuthError: [200] (#200) App cannot edit non-app posts #149

I'm trying to make a (hopefully) useful script for public use, which basically sets all the privacy of posts before a certain date (eg, 1 year) to 'only me' automatically.
I'm using the token from graphAPI for permissions.
I'm able to get posts,but when I try to update the privacy setting of the post, i get:
OAuthError: 200 App cannot edit non-app posts
Nearly every permission is enabled in the graphAPI page (https://developers.facebook.com/tools/explorer/) Is there a way to achieve my objective with this token? or is the only way to create an actual app, request the permission from facebook then do it? =/ That seems overly obstructive for a simple use case..
Would appreciate any help :)

MassPay API Using NVP returns "Security Header Is Not Valid"

I'm trying to follow the instructions at https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEJ0100A for paying a customer. https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature# tells me the API username, API password and and signature. I paste those values directly into my program, and POST those parameters (as well as other parameters) to https ://api-3t.paypal.com/nvp and I get this response back:
TIMESTAMP=2015%2d05%2d06T23%3a58%3a01Z&CORRELATIONID=6eef131f4a296&ACK=Failure&VERSION=2%2e3&BUILD=16566018&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
Any tips for troubleshooting what might be going on here?
Thanks in advance!
Kevin
That error means the API credentials you're using are not accurate. Double the check the values themselves and make sure you didn't miss any characters or add any extra white space on the ends of the values. Also, make sure you're not sending sandbox credentials to the live PayPal server or vice-verse. That's usually what's happening when people run into this.

Is it possible to post comments on Instagram via API?

There is a POST method for to create comments, but it says the following:
Create a comment on a media. Please email apidevelopers[at]instagram.com for access.
See: http://instagram.com/developer/endpoints/comments/#
So do I have to get whitelisted for to be able to post comments or is the access_token enough?
Yes it is possible to post comments on Instagram via API. You have to get whitelisted now, so you have to email. This was not the case before, you were able to use commenting in api whithout whitelisting, but because of some apps spamming and abusing the comments feature, commenting now has to be whitelisted
See more: https://developers.facebook.com/docs/instagram-api/reference/media/comments#create

Resources