Facebook API Insights Issue - ruby

I am developing web application that collects views data about Facebook Posts in video. The problem is that when I try to fetch views data, for example, 57460905720_10156493579175721/insights/post_video_complete_views_organic,
I get an empty data array.
When I append fields parameter, like ?fields=description, I get empty array too.
How to get information about video views?

Related

How to read Drupal 8 webform composite element properties in webform handler

Hoping someone might be able to help me out. I have a custom Drupal 8 module which has a webform composite element with some settings/properties that are fields where I can either enter a webtoken to capture some data from the form or simply enter some data for later retrieving on the webform handler side. The issue is that I thought this data would be included in $_POST but it's not so I'm trying figure out how I can retrieve the data after the form is submitted. FYI, I don't even see this data being stored in the "webform_submission_data" table so not sure where it's being saved. If anyone has some sample code it would be greatly appreciated.
My last thought was that this data could be retrieved via \Drupal::configFactory() but that doesn't make sense because the data there is static and if I'm using webtokens for these fields I'm essentially capturing changing data all of the time.
Per screenshot below, I'm trying get the authnet element settings data (charge amount, authorize.net profile) from either a custom handler or even a hook after user submits the form. Note that "first_name_on_card" is indeed available in the $_POST data.

Why does Multiple media field returns same image?

I am working on a sample blog web app using Gatsby and Strapi. To test the multiple-media capability:
I created a test dataset, where the Collection Type definition was a single "Name" field and a field for multiple media.
name: Text, images: List[Media]
Then, I created few entries, expecting to use the following graphql query to retrive the data from strapi: query
However, the publicURL property for each returned row is the same image url - the first uploaded image. As a result, the web app displays the same image for all three records.
Based on posts online, I suspected it might be a cache issue and tried gatsby clean multiple times and gatsby develop. However, the images are still getting mixed up.
I'm stuck on identifying why this might be happening. Does anyone have any thoughts on what could be the problem? I'd appreciate the insight.
Do not pull formats just get full lists as an object.
Modify your GraphQL query then handle lists inside gatsby.
console.log(typeof(lists))

How to retrieve only certain data from Parse?

I am working with parse to save user data. I am saving every user that signs up in a parse table. I can run my app and see data from all the users who signed up; but I dont want that. What I want is to display information only from users in a friends list. Thats my problem. Should I create and query through a list of user ids or emails that I save internally in the device as JSON or raw data to upload in a new class in parse? Should I save these friend contacts directly in my current ALL USERS Parse table and get the data somehow without having the entire parse table provide all users data? I hope this makes sense to anyone. Any guidance would be really helpful. Thanks for your time.

How to improve Angular2 rendering performances when accessing a backend server?

I have a service which is responsible for getting the data from a backend.
The data is shown via a component in its nginit method. It is shown in a table (html table).
I would like to be able to manipulate data without having to reload it each time in my table : ex : delete a row, add a row ... I want all of this very fluid. The data is coming from a database.
So my question is :
Should my service return an observable or an array ?
Is nginit the best place to show my table ?
How should I do things maybe to manage everything in memory? I do not know.
Thanks for any advice.
I would save the data into an array then use lodash to manipulate it.
You could edit, delete, and add rows using lodash's built in functions. When you want to save the data to the backend you would then post the array back to the server. This will keep backend requests to a minimum which will help your performance.
For example you could delete elements from the array using the remove function, https://lodash.com/docs/4.17.4#remove
Lodash can be setup like this https://medium.com/#gtsopour/importing-lodash-into-angular-2-typescript-application-94590365f46d#.9mdcdjnac
Of course you could do this all using raw js though but I find Lodash very rich and easy to use.

YouTube data Api for videos under particular category

I am trying to fetch the 25 each videos under particular category, but i am struggle to form YouTube data API, can anyone help me to form.
I have got category list using categories API, but i am struggle to fetch videos of particular category.
You need to use the Videos List API
with the parameters chart=mostPopular and videoCategoryId=<id>
for example
https://www.googleapis.com/youtube/v3/videos?part=snippet&chart=mostPopular&videoCategoryId=10&key={YOUR_API_KEY}

Resources