graph api search not returning a post - search

I am searching using https://graph.facebook.com/search?q=anglogold&type=post
this is not returning a post I made myself just now. Any idea why

https://graph.facebook.com/search?q=anglogold&type=post
returns a lot of posts for me.
Facebook can restrict results on search api on different scenarios.
Not suitable for a particular country/region
Not a public post
Person is blocked by user
and may be few others.

Related

Weird Issue With Instagram API

Issue:
First API calls only returns top 3 posts.
The next_url returns no data(data array is empty and pagination string is null)
The 4th post is suspect because I am unable to get it with API calls and it is not returned in the first API call.
Details:
Using v1/users/self/media/recent endpoint
Using Javascript to loop through calls, using "next_url" for the 2nd and subsequent call.
Using Access Token
Worked fine(returned all posts) until "the 4th post" was made
Why do I think one specific post is the issue? Because I am unable to retrieve it using the API. If I set the max_id to this post id, then I get all other posts before this post.
If I leave max_id out, the first call gets all posts newer than this post.
Verified that I am not in a Sandbox.
Has anyone encountered this before? and why would one post be breaking the next_url API call? Is there something in the post causing this?
I can't give out the IG account, sorry I know that would help, but it needs to remain private.
I am a developer on a project that makes extensive use of the legacy Instagram API. It has, for a long while now, been extremely flakey. We have experienced your exact issue many times and there is no practical solution.
However, all Instagram APIs have now (finally!) been migrated to Facebook. You should use the new Instagram Basic Display API which will be properly supported going forward.

LUIS API - Retrieve all endpoint utterances and its scores

I have been searching the past few days how to retrieve the endpoint utterances and its scores for a dashboard I am working with. Problem is I'm lost with the APIs, there seems to be many, but I cannot find the exact one that fits my need.
In this API documentation here, there is one that gets example utterances. What I would want to get is the actual endpoint utterances.
Anyone can point me where to find the API to use? Thanks in advance.
#Jeff, actually in that API docs that you linked, the answer was there, however perhaps not under the most obvious name.
You're looking for Download application query logs, which has this request URL
https://[location].api.cognitive.microsoft.com/luis/api/v2.0/apps/{appId}/querylogs/[?includeResponse]
GET Download application query logs - Gets the query logs of the past month for the application.
The response is 200 as a CSV file containing the query logs for the past month.
Got this one working now, got it from this forums.
https://<REGION>.api.cognitive.microsoft.com/luis/api/v2.0/apps/<APP_ID>/versions/0.1/intents/<INTENT_ID>/suggest?multiple-intents=true
Just confused a bit, I do not find the use of the INTENT_ID here. I'm not sure if this was intended or was a fault on the api design.
But anyways, did the job, got all the user utterances and its confidence scores.
Hope this helps anyone.

How to fetch my followers Instagram Activity via API?

My scenario is, basically, as an Instagram user I want to fetch my following users activities through API, a list of their likes, comments etc. It is able via user interface but instead I want to fetch them.
No programming language enforcement. Nodejs, Python preferably.
Thanks for any of your helps!
Well, kinda found a way to solve. There're bunch of API's on github called Instagram Private Api. I go with python one which gives a horrible response.

Wants to save Instagram post and comments on post to our domain, is it possible and if possible how?

I have a domain which have a feature to login with instagram a/c, registered users associate their instagram a/c using this process.
Now i want to store/save all post and comments of users they have posted on instagram a/c.
So that i can perform a search on comments and caption of posts.
As fas as my knowledge its not possible by using instagram api thats why i am saving info in my database.
Is there any simple way to perform search ?
Any help will be appreciated.
Thanks
Instagram only gives you 150 latest comments via API, so if you want to search through all comments, you have fetch comments at regular interval and save on server, searching these comments are straight forward, look for substring in the comment items saved. It is kind of tricky on deciding how often you want to check for comments and store, usually mosts comments are posted few minutes after a popular photo is posted. If you do the checks too often, you may reach the API rate limit.
https://api.instagram.com/v1/media/{media-id}/comments?access_token=ACCESS-TOKEN
If you are dealing with less than 150 comments on average, then you can search through it without needing to save on server and can be done all on client side. Just pull the comments using API and do search through the array of comments using javascript.
Picodash allows you to view the latest 150 comments and search any keyword or user, here is screenshot:
I have developed library in php: https://github.com/raiym/instagram-php-scraper
It allows you to get ALL comments from specific post (I have tested with 8 000 comments)
$comments = Instagram::getMediaCommentsByCode('BGY0zB4r7X2', 1500);

Instagram search user api always return empty result with success code

We are invoking instagram search users api to get profile list as
https://api.instagram.com/v1/users/search?q={search-term}&access_token={access-token}
but we are getting always empty result with success code as
{"meta": {"code": 200}, "data": []}
Our search term would be always instagram username i.e. username portion from https://www.instagram.com/username/
I remember this was working before 2-3 months. Any other are facing similar issue?
Sounds like you already figured out your problem. In case anyone else is having the same problem, here's a short article summarizing how Instagram's Sandbox Mode works.
TL;DR
“Sandbox mode” is the (unintuitively-named) gatekeeper walling off
most of what you want to do. This is the default status for all
clients, that have not undergone the strict submission process. An API
client in sandbox mode has extremely limited permissions. In fact, it
has fewer permissions than an anonymous user viewing public content
because your app basically lives on a tiny desert island in which you
are the only Instagram user and only your past twenty posts exist. So,
for example, the /media/search endpoint will only return the media you
uploaded near a given location, excluding the media from everyone else
or any posts beyond your last twenty.
So your API call is succeeding. It just isn't finding any results because it can only "see" other sanbox users for your client.

Resources