Why follower_count insight metric returns the number of new followers of a given day, instead of Total number of unique users following? - facebook

It seems there is a bug in the definition of folower_count insight metric in Facebook graph API for Instagram Business Accounts.
your_instagram_business_account/insights?metric=follower_count&period=day
https://developers.facebook.com/docs/instagram-api/reference/user/insights
They wrote that this is "Total number of unique users following the Business Account", but we observed that this metric give us the number of new followers of a given day. Also, there is no information about the number of unfollows, so if on the same day it would be 2 new followers and 2 unfollows, the follower_count will be 0.

According to the documentation you provided, follower_count is defined as
Total number of new followers each day within the specified range
so this lines up with expectations. Admittedly I'm answering this a bit late so that definition may have changed since you posted this.
the followers_count (note the 's') may be what you're looking for. https://developers.facebook.com/docs/instagram-api/business-discovery

Related

Recording Followers as of last social media post date within a month [Tableau Calculated Field]

my problem is as follows.
I have social media data for multiple networks (facebook, twitter, instagram, etc.) and multiple profiles within each network. I have a date parameter which controls the dashboard based on year/month of the data history to summarize data by month.
I need to record the followers of each network and profile, in aggregate and separately, for each month. This calculation is tricky because I need to aggregate the followers by the latest post of each profile within the month. I would like to view those audience numbers for the month using a filter by network and profile.
I have tried a number of things to isolate followers for one profile and one network, hoping I could expand this to a scenario with multiple, and not been successful. This has included the following calculated fields:
(Given a filter for one network and one profile already applied)
attempt 1:
IF LAST() = 0 then SUM([Instagram Profile Followers]) END // This one pulls in total followers for last month (641.6K)
attempt 2:
LOOKUP(SUM( if MONTH([Date]) = MONTH([Date Parameter]) and YEAR([Date]) = YEAR([Date Parameter]) then [Instagram Profile Followers] END), LAST()) /// Returns total followers in month
attempt 3:
{ INCLUDE DATETRUNC('month', [Date Parameter]): max([Date Parameter])} /// Returns followers first day in month (b/c using max date parameter (which is technically yyyy/mm/01)
I'm not totally convinced a solution exists when I would like to create an aggregate by all networks and profiles together, given the latest post for each would be different days. If I could at least get the latest followers for one individual network and profile filtered, that would be fantastic. Any help greatly appreciated.

Count Unique Values in Found Set

Firstly please allow me to explain what I am trying to achieve. I have a found set of about 100 records, each record has a SKU number (serial) now out of the 100 records, some records have the same SKU, so of course there is less than 100 unique SKUS.
I want to know how many times a SKU appears within the found set. NOT the total number of unique SKUS, but more like how many times each SKU appears individually.
So for example I could have the SKU - 123456 - which appears twice in the found set, so the value for that should be 2, as there are 2 instances of that SKU in the found set.
So just to reiterate, I do not want the total number of unique SKU's in the found set, but more to know how many times each individual SKU appears within the found set.
I have tried many things but keep ending up with the total unique values which is absolutely no use to me.
Thanks
Building on michael.hor257's idea, you can use the GetSummary function to achieve your desired result.
Sample field definition:
After sorting your found set on SKU, this will produce the following result:
use ExecuteSQL filemaker native function to achieve this easily. here is FileMaker article that gives a very good insight:
http://help.filemaker.com/app/answers/detail/a_id/3423/~/counting-the-number-of-unique-values-in-a-field

Oracle ATG: New payment group issue, amount of the payment group has invalid values

I have added a new PaymentGroup for our Ecommerce site for store-points redemption based on the documentation.
After submitting an order (store points + cash), I could see that the final amount of the store points PaymentGroups is incorrect.
It seems the amount is a cumulative sum of the points amount of previous orders.
When debugging I saw following in PaymentGroupFormHandler.applyPaymentGroups() method, List commerceIdentifierPaymentInfos = container.getAllCommerceIdentifierPaymentInfos();
This list contains the PaymentInfo of the previous order as well. So, the pgm.recalculatePaymentGroupAmounts(order) gives a cumulative summation of previous points redemptions.
Still I couldn't find the root cause for this. Any help would be appreciated.

Tableau - Multiple data into one graph, with double dimension on the x-axis

I'm very new to Tableau, and (maybe because of that) struggling with a graph setting. I need to plot a simple line graph showing the ratio between the number of users that returned after registered x days ago and the total number of users that registered x days ago (regardless on the fact that they returned or not). To do this, I have two tables: TableA having (simplifying) USER_ID and DATE_REGISTRATION, and TableB USER_ID and VISIT_DATE. Both table are joined by USER_ID.
I'm able, of course, to plot each individually (i.e. count distinct of USER_ID with DATE_REGISTRATION on the x axis to get the number of new users registered per day), but not able to combine them. I guess the problem is that I'm using either DATE_REGISTRATION or VISIT_DATE on the x-axis, but in this case I can get one or the other info, but not the two combined.
Ultimately, I would like to be able to have, for each date, both the number of users visiting and the number of user who registered.
Thanks a lot in advance.
Raffaele
Well, problem is your database is not ready to generate those analysis. Your table is user_id oriented, meaning you can do lots of analysis centered on the user_id. To do date oriented you need a table like:
Date User_id Type of event
01/01/2014 1234 Registration
02/01/2014 1234 Visit
Then you can drag Date and Type of event to Columns, and COUNTD(User_id) to rows, to get a bar chart that will show, for each day, how many people registered that day and how many people visited that same day.
Additionally, you can still join this table with the one you have, to have the registration date for each user_id. That way you can, for instance, calculate how many days have passed since registration.

How to Sort/ Limit the API call for Groups for member list

I see that we can only get 500 members of a group using the graph API.
and the doc says these are "the first 500 members",
Are these sorted by date signed up, or latest 500?
Is there any way I can further limit these to signed up in the last 24 hours/ 1 week?
Is the 500 limit there in using FQL also? (the docs don't specify that )
Is there any way I can further limit these to signed up in the last 24 hours/ 1 week using FQL?
i see that we can only get 500 members of a group using the graph API. and the doc says these are "the first 500 members",
are these sorted by date signed up, or latest 500,???
I’d say by date of joining the group, because otherwise calling them the “first” 500 would make little sense.
Is the 500 limit there in using FQL also? (the docs dont specify that )
From my tests there seems to be no such limit on the group_member table (just tried it for the FB developer group using Grapf API explorer, and my browser froze for about a minute loading the data).
is there any way i can further limit these to signed up in the last 24 hours/ 1 week using FQL?
No, there is no such info as signup date in the FQL table.