anyone can help on facebook insights? I'm trying to get the Total Reach using facebook graph API.
Here's my example:
http://www.screencast.com/t/1deguhkEuMb
I've been trying these following metrics:
/page_impressions_frequency_distribution
/page_impressions_viral_frequency_distribution
But I still can't get the right value for the Total Reach.
Anybody can help me?
Thanks in advance.
Try using the metric /post_impressions_unique
This will return the number of people who saw your Page post
Just tested it and the response object contains:
"title": "Lifetime Post Total Reach",
"description": "Lifetime: The total number of people your Page post was served to. (Unique Users)"
https://developers.facebook.com/docs/graph-api/reference/v2.3/insights
Related
I'm getting the reach metrics via api call
{page-id}/fields=insights.metric(post_impressions){values}
But didn't find any way to get reach metric of facebook posts using webhook.
Do we get reach metrics using below endpoint
$facebook_page_id.'/subscribed_apps?subscribed_fields=feed
I'm following enter link description here
But didn't find any way to get reach metric of facebook posts using webhook.
There isn’t any.
The data you can get from this endpoint, is not data that would require any reaction “in real time” to begin with, so it would make rather little sense to integrate this into web hooks in the first place.
And these insight metrics get updated once a day only anyway, AFAIK.
Just make the API request, when you need the insights data.
I'm currently using the Facebook Graph API to get some results.
I got almost everything but stucked in event date.
Url-
https://graph.facebook.com/$page_id/posts?access_token=$access_token&fields=object_id,story,message,full_picture,from,link,updated_time,source,type,caption,description
I need to get the event date.
Any help will be helpfull.
Thanks
https://graph.facebook.com/$page_id/events?access_token=$access_token&fields=name,id,timezone,message,start_time,end_time,picture.type(large),description,category,type,attending_count,interested_count,declined_count
For Events I am using this here I am unable to get large image.
I have used picture,full_picture but not getting large size image
I understand this has been asked before. I also understand there is probably a way to scrape this. What I am after here is different than what has already been asked (I believe).
What I am after is being able to pull just the stars, and the amount of reviews for a given product WITHOUT breaking the TOS of Amazon.
I do not want to display all of the reviews and such that are inside of the iframe that they let you use. I am able to display the iframe, but I don't need to display that much information. So to be clear, I just want the Stars and the # of reviews (the average customer review, and # of reviews).
If you want to go the extra mile and tell me how, I'd really appreciate knowing how via PHP! If this is against the TOS, that's all Id really need to know. If it is, I'd love it if you could provide me a link to where it says that it IS against the TOS.
Thanks for any and all help! It's always appreciated.
Late to the party. As of 2020-09-21, you can get rating stars and reviews count by call the GetItems endpoint of Amazon Product Advertising API V5. Enter an ASIN you would like to look up and have CustomerReviews resource checked.
API result
Do note Amazon changes the data points they would like to expose through API from time to time. They might not be available some day in the future.
[Update as of 2021 September]
What I realized is that some foreign marketplaces might don't have rating and reviews returned through API. As of now, data is available at US and CA marketplaces. But it is not available in UK.
I don't know about the TOS, but to do that in php, if there is no official api, you can use simple_html_dom: http://simplehtmldom.sourceforge.net/.
<?php
define('MAX_FILE_SIZE', 6000000);
include './simple_html_dom.php';
//Your product amazon's url
$url = 'https://www.amazon.com/SOL-REPUBLIC-1112-31-Headphones-1-Button/dp/B00COOVLMQ/ref=sr_1_1?s=fiona-hardware&ie=UTF8&qid=1470197678&sr=8-1&keywords=sol+republic';
$html = file_get_html($url);
$review_section = $html->find('#averageCustomerReviews',0);
$stars = $review_section->find('#reviewStarsLinkedCustomerReviews',0)->plaintext;
preg_match('/\d+\.{0,1}\d*/',$stars,$match);
echo "Stars: ".$match[0]; //Shoud be stars
echo "<br />";
$reviews = $review_section->find('#acrCustomerReviewText',0)->plaintext;
preg_match('/\d+/',$reviews,$match);
echo "Reviews: ".$match[0] //Shoud be reviews number
?>
I actually tried and it works for me.
It's not possible to do from PAPI. You either need to scrape it yourself or use other third party API. We use the amazon-price API from RapidAPI, it supports price/rating/review count fetching for up to 1000 products in a single request.
I am using Twitter's API to retrieve user tweets (via screen name). However this is returning all "retweets" and random replies to other twitter users. I've been searching through Twitter's API to find a way to ONLY pull back the tweets instead of both tweet & reply but can not find a good solution. Could anyone lend a hand?
Thank you.
Have a look at this doc. Simply add parameters
exclude_replies=true & include_rts=false
along with your query. This will filter the retweets and replies!
One of my friend give me this challenge.
Monitor/Scan any twitter account for specified keywords inputted into the
program and grab the twitter Link Instantly and proceed to add to cart.
Must be using the Twitter API with oauth! Must find the tweet instantly or
BEFORE it is even tweeted out by the twitter account!
Please guide me
Thanks
You can get information based on tweets with the twitter GET search/tweets API.
There is no way anyone can guide you through all of this from here. But we can shoot you in the right directions and help you through the parts you get stuck at!
Here is a link to the GET search/tweets API
Click Here
Get the API and build a working environment on your local machine. From there if you run in to problems ask and you shall receive answers!
Hope this helps!