I am using the Facebook api to grab all the posts from a public page. Everything works great except for the photo they provide is very low quality and small. How do you modify your graph api query to get a better quality photo?
This was the original query I used to obtain an access token in the graph explorer:
1650393515218783?fields=posts
After reading similar questions and some documentation I tried this query
1650393515218783?fields=posts,picture.type(large)
But this still returned a low quality photo. Does anyone know how to get around this?
This may help
developers.facebook.com/docs/graph-api/reference/photo/
Related
TL;DR - I need help using Google Places API to download star ratings and user reviews of multiple stores and I am too dumb to figure out what I am suppose to be doing. Please help!
For the life of me, this has been hard to find any sort of useful info or documentation in terms of trying to download user ratings and star reviews from multiple locations. Just to give you a bit of info, I work for a company that has three major brands with over 500 stores across the country. We have multiple listings and our senior stakeholders are wanting to get their hands on what our customers are saying about our brand and particularly see who are top performing stores are (and who are NOT are top performers) in the form of star ratings and user reviews.
Now to get those sorts of insights is pretty easy to do for one location, but for multiple? It seems Google doesn't have that feature on hand.
According to the Google Community, I would need to use Google My Business API (see thread 1) However Google Support told me that for what I am looking to do required Google Places API. So after heading over there, I found this which makes this the most possible way I can get what I need Google Places API
Now I am stuck at the part about loading libraries. Darnit, surely there is a way I can just make an API request to get what I want, no?
I am throwing myself on the mercy of you smart people (I have the basic knowledge and I am a person who learns by doing) so your assistances will be deeply appreciated.
Using Places API web service you can get up to 5 reviews when you execute a place detail request. Rating is also available in the response.
Please have a look at the documentation:
https://developers.google.com/places/web-service/details#PlaceDetailsResults
Currently, there is no way to get more than 5 reviews in Places API. You can see a feature request in the public issue tracker, however, it looks like Google didn't set a high priority on this task:
https://issuetracker.google.com/issues/35825957
If you are the owner of the place in Google My Business, you can use Google My Business API to retrieve a list of all reviews for your place:
https://developers.google.com/my-business/content/review-data
Hope it helps!
Using
"https://api.instagram.com/v1/locations/search?lat={LATITUDE}&lng={LONGITUDE}&access_token={ACCESS-TOKEN}"
I only seem to be able to get 20 results, although I can tell there are more than that many locations by looking on the Instagram app. There is no pagination information provided, and adding
&dist={DISTANCE}
does not seem to have any effect on the results whatsoever.
Any help is appreciated!
In the end, the best solution I found was to get the most recent media within a certain radius, using:
https://api.instagram.com/v1/media/search?lat={LATITUDE}&lng={LONGITUDE}&distance={DISTANCE}&access_token={ACCESS_TOKEN}&count={COUNT}
then query the locations each of those photos were from (having removed duplicates) to get more images from each location, using:
https://api.instagram.com/v1/locations/{LOCATION_ID}/media/recent?access_token={ACCESS_TOKEN}
This is the only way I could find to get many images from more than 20 locations! Basically, I'm performing a location search through the media by location search.
api endpoint
You have to call the url given inside pagination key to get more results
I am a newbie to this Graph API Explorer, which, I found today, is something that lets me extract data from FB. This is really cool!
I was trying to extract user demographic information using the Graph API explorer from a group with about 2300 members that I own, however for some reason the query is not extracting anything other than name and id as you can see from the screen.
Experts, why is this happening? I believe I have ticked all relevant permission tick boxes to be able to perform this query.
Thanks in advance.
I have Call Detailed Records(CDR) data which in its raw form has timestamp, latitude and longitude. I have summarized this data to show where a user was on a particular day. What I have now are three fields: Begin(Date),End(Date) and Lat/Lon. Worth noting is that intervals are irregular and Lat/Lon can repeat. My objective is to have a visualization/animation with the following capabilities. Adjustable speed when viewing time so that I can see when a user returns to the same place. It should look something like this or this. I have searched endlessly and cant seem to find pointers to resources for use in Google maps or similar platforms. Now I have a kml file for each user but when I view it in Google Earth, the effects are not what I'm looking for. Problems include speed,its too fast and for some reason I cant control the start date of the animation. Any help will be appreciated.
CanvasLayer.js Library is what you have to integrate with your app code in order to get the sort of animated data on your Map. This library integrates Google Maps and Web GL behind the scenes and you just have to basic code for initialization and add path of your text/kml file, Rest of the things are automated.
Please follow this link to know about the code implementation and also some sample examples.
Hope this would Help!!
I understand the usage limits for the Google places API.
However, once you have made a place details request, occasionally a location will have several photos available to it.
You can then retrieve the URL for these photos by using the following function:
photo.getUrl(maxWidth:200,maxHeight:200);
This works find and the actual URL of the image is returned. No ajax request appears to be made to Googles API, it simply returns a URL which you can then dynamically add to your DOM.
The URL's returned are like so:
https://lh4.googleusercontent.com/-SG8x8m7avHc/UWm8kgkkKTI/AAAAAAAAAA8/6_wM5YoSnlk/w1280-h1280-s0/2013-04-13
What I need to know is if accessing these images has any kind of usage limit attached to it.
Does each view count as one Google Places API request? Or are all views essentially free and it is only the initial Place details request which counts towards usage.
I know this question is old but it still isn't answered, so I'll try my best.
Does accessing these images have any kind of usage limit attached to it?
No, once you've successfully requested a place result using the Places API you are free to request as many image URLs relating to that result as you'd like with no usage limitations on the Places API itself.
However, Google will limit the number of images you may receive if you don't have a premium plan. So for instance, if you were to make 200 image URL requests for 'The Eiffel Tower', you might only receive up to 15 (or less) images if you're on a free plan. I know that sucks right.
Does each view count as one Google Places API request? Or are all views essentially free and it is only the initial Place details request which counts towards usage
If you're referring to image URL requests as a "view". Then the latter is true. Each image source requested won't increment the usage of the API.
If you're still uncertain here's a link to the Place Photo requests method in the Google Maps Places API Documentation
Each page of results must be displayed before displaying the next page of results. Note that each search counts as a single request against your usage limits.
refer here