Connect with us

FACEBOOK

Simplifying analytics for Messenger bots

Published

on

For the busy developers or lazy readers: We have a new toy for you. Go and have fun! 🤝

It’s conventional wisdom that you can’t improve something that you can’t measure. Product usage data is not only interesting and nice to have, but an important foundation for making the right product decisions and assessing the effectiveness and ROI of your Messenger bot compared to other channels.

Example bot funnel for an e-commerce flow

For traditional websites, there is a myriad of tools and services available that web developers can use. This article outlines the best practice for using Facebook Analytics for Messenger bots and introduces an npm package which is aimed at helping developers to make integration effortless.

Experienced bot developers know that launching a conversational experience is only the start of the journey to improving your service over time — based on real user interactions. It’s a tough, but rewarding challenge because conversations are not deterministic by nature like graphical user interfaces. In other words, the bandwidth of user actions is much wider than on traditional websites where the user can scroll, click pre-defined buttons, and write text in known input fields or text areas.

On the Messenger platform, the most integrated way to log bot activity is to use Facebook Analytics (FBA) in form of custom app events through the app activities endpoint. Although logging an event to FBA only requires a simple API call, many bot developers skip this step and launch Messenger experiences without having a measurement framework in place.

The Partner Engineering team at Facebook has therefore set out to simplify event logging for Messenger bots. The result is a thin integration layer that sits between your Messenger bot and Facebook Analytics.

Meet the messenger-analytics package

The messenger-analytics package offers a simple interface to Facebook Analytics (FBA) for Messenger bots. It provides a thin integration layer as well as a collection of commonly used bot events to give you a basic idea of useful metrics.

Facebook Analytics (FBA) is a people-first analytics tool for an omni-channel world. It can be used as a standalone logging solution for your Messenger bot or in addition to other analytics software. FBA is closely integrated with the Facebook ecosystem, including Ads Manager and the Facebook Pixel. This allows you to optimize your campaigns for specific actions in the bot and to combine pixel data from your website with Messenger bot activity.

A question that Facebook Analytics can answer: “How many people purchased an item on my website after having been consulted by the bot beforehand?”

The Facebook Messenger platform automatically logs certain events for your bot, for example “message sent” and “message received”. These events are logged on the app-level and can be visualized in Facebook Analytics (FBA).

In addition to these automatic events, FBA also supports the logging of custom events which enable you to visualize user journeys and track the performance metrics of your choice. The messenger-analytics package helps you to log custom events in Facebook Analytics.

Installation

npm install --save messenger-analytics

Import

const FBA = require("messenger-analytics");

Creating an event logger

Create a logger using the app and page ID associated with your bot.

const logger = new FBA.Logger({
appID: YOUR_APP_ID,
pageID: YOUR_PAGE_ID,
});

Logging events

The simplest form of logging an event is to provide an event name and the user identifier (PSID). You can either use an event name defined in this module or choose an arbitrary name.

Note: Whenever possible and applicable, use the so called predefined app events in FBA.EventNames.Predefined. They are utilized across the Facebook ecosystem and are needed for campaign attribution and optimization in Ads Manager. Given the significance of these events for other Facebook products and services, it is advisable to treat them as first choice.

// Using a predefined event name (required if you want to report on a specific metric in Ads Manager)
logger.logEvent(
FBA.EventNames.Predefined.Purchased,
"USER_PSID",
).then(() => {
console.log("Event successfully logged to FBA.");
}).catch((err) => {
console.error(err);
});// Using a custom event name
logger.logEvent(
"subscribed_sports_news",
"USER_PSID",
).then(() => {
console.log("Event successfully logged to FBA.");
}).catch((err) => {
console.error(err);
});

You may also attach parameters to an event. These parameters can be used for filtering, segmentation, and campaign reporting. Predefined events have specific parameter definitions which need to be followed if you want to log purchases and see the purchase value and currency in Ads Manager, as an example. The parameter definitions can be found in the App Events API event structure.

On top of these standard parameters, you may also log additional custom parameters. Parameters for custom events don’t have to follow any naming convention.

// Purchase event with 3 standard 1 custom parameters
logger.logEvent(
FBA.EventNames.Predefined.Purchased,
"USER_PSID",
{
_valueToSum: 87.90, // standard parameter, defaults to 1
fb_num_items: 3, // standard parameter
fb_currency: "EUR", // standard parameter
custom_var: "hello_world", // custom parameter
}
).then(() => {
console.log("Event successfully logged to FBA.");
}).catch((err) => {
console.error(err);
});

These parameters can then be used in FBA to filter your results:

Filtering events by parameters

Platform and language availability

We chose to publish this analytics package for bots built on NodeJS (written in JavaScript) first. Depending on popularity and demand, we might follow up with implementations for other popular “bot builder languages” like PHP, C#, Ruby, or Python. If you have a preference, let us know in the comments! 🙂 In the meantime, you can simply send your requests straight to FBA using our the analytics quick start guide.

Facebook Analytics for Messenger is MIT licensed.

Messenger Developer Blog

FACEBOOK

Youth apologises to parents on Facebook for ’embarrassing them’, hangs himself to death

Published

on

Youth apologises to parents on <b>Facebook</b> for 'embarrassing them', hangs himself to death thumbnail

The deceased was identified as Sumit Pardhe (Representative Image).

The deceased was identified as Sumit Pardhe (Representative Image).&nbsp | &nbspPhoto Credit:&nbspiStock Images

Key Highlights

  • A 24-year-old youth in Aurangabad allegedly hanged himself to death on Friday
  • The youth took the drastic after apologising to his parents on a Facebook Live

Aurangabad: A 24-year-old youth from Aurangabad, Maharashtra, allegedly ended his own life after apologising to his parents for “embarrassing them”. The youth went live on social media platform Facebook before taking the drastic step and apologised to his parents. 

The deceased was identified as Sumit Pardhe. Pardhe was found hanging from a tree in Paradh, Jalna on Friday morning. He was a resident of Hatti, Sillod tehsil of Aurangabad. 

‘The family is in shock and they are not in a position to speak’

Abhijit More, Paradh police station inspector said that the circumstances that prompted Pardhe to take the drastic step have not been ascertained yet. He added, “The family is in shock and they are not in a position to speak. “

The youth had gone to stay at his aunt’s home. On Friday morning, he left the house to go to a neighbouring farm where he allegedly hanged himself to death. Some of the locals saw the body and informed the police. The youth was taken to a nearby hospital where he was declared brought dead, The Times of India reported. 

Youth apologised for going against parents’ wishes 

The youth had completed his masters in science and used to play volleyball. During the Facebook Live session, the youth apologised to his parents for embarrassing them. He said that his parents had to apologise publicly because of him. The youth also said that his decision of going against his parents’ wishes caused all the problems for his family. 

Reportedly, the youth was disturbed over an incident that took place around three days before he took the extreme step. Efforts are underway to unearth the details of the incident. A case of accidental death was registered by the police. 


 

Read More

Continue Reading

FACEBOOK

Israel, Arabs and Jews: Was Facebook objective? – Analysis

Published

on

Last week, readers contacted The Jerusalem Post to suggest that we investigate claims that Facebook and Instagram were maliciously biasing the social media war against Israel, guided by powerful figures inside the company.

According to the claim, people pressing “report post” on blatantly antisemitic or anti-Israel content, or posts with false information about the recent military campaign, were told that the post “doesn’t violate our community guidelines.”

Reporters investigated a particular Instagram employee, a Muslim woman who has posted several pro-Palestinian images on her personal Instagram account, who activists said is one of the people who decide what is and isn’t in line with the social media giant’s community guidelines. “If the heads of these companies support these views themselves, why is it even surprising that no one sees our side?” one Jewish activist asked.

After investigating the matter further and speaking with a number of Facebook executives, the Post concluded that the accusation wasn’t strong enough to pursue. But an article published last week in Buzzfeed News made a similar accusation- from the Arab side.

According to the article, “Facebook is losing trust among Arab users,” because during the ongoing Palestinian-Israeli conflict, “censorship – either perceived or documented – had made Arab and Muslim users skeptical of the platform.” The article went on to list the same claims the Jewish activists had made, that their posts were being censored while the other side’s were not, and that powerful people inside the Facebook organization were making deliberately biased calls about what meets the company’s community standards and what does not.

The article quoted heavily from The Jerusalem Post’s September 2020 profile of Jordana Cutler, Facebook’s Head of Policy for Israel and the Jewish Diaspora, who was named one of the year’s most influential Jews. The article saw proof of Facebook’s pro-Israel bias in Cutler’s statements like “My job is to represent Facebook to Israel, and represent Israel to Facebook.” Facebook’s former head of policy for the Middle East and North Africa region, Ashraf Zeitoon, was quoted as saying he was “shocked” after seeing that interview.

Zeitoon, who left Facebook in 2017, shouldn’t have been so shocked though. Facebook maintains public policy teams in every country it works in, tasked with interfacing between the needs of the social media company and the legal and diplomatic needs of the local government.

“Jordana’s role, and the role of our public policy team around the world, is to help make sure local governments, regulators and civil society understand Facebook’s policies, and that we at Facebook understand the context of the countries where we operate. Jordana is part of a global policy team, and to suggest that her role is any kind of conflict of interest is entirely inaccurate and inflammatory,” a Facebook spokesperson said.

Israel, like other countries, expects Facebook to remove content that violates local laws, even if it meets Facebook’s own criteria. On that matter, Israel’s intervention during the Guardian of the Walls military campaign was relatively limited. Data from the cyber department of Israel’s Attorney-General shows that from May 8-26, Israeli officials made 608 requests from Facebook to remove posts, with 54% accepted. On Instagram, there were 190 official requests for removal, with a 46% acceptance rate.

The number of Israelis reporting hate speech and incitement through the platform seemingly had a far greater impact. According to Buzzfeed News, Israel, with 5.8 million Facebook users, reported to Facebook 550,000 posts violating policies for violence and hate speech and 155,000 posts for terrorist content during one week of fighting. During the period, Israelis reported 10 times more terrorism violations and eight times more hate violations compared to Palestinian users, Buzzfeed said, citing a company employee.

Zeitoon, in a different interview given to CBS News, attributed that gap to Israel’s organizational superiority. “Israel has hacked the system and knows how to pressure Facebook to take stuff down,” he was quoted as saying. “Palestinians don’t have the capacity, experience and resources to report hate speech by Israeli citizens in Hebrew.”

Others, however, note another difference: Hamas is recognized by many governments as a terrorist organization, and Palestinians posted in far greater number than Israelis direct calls for violence, hate speech, and content glorifying terrorism. Ignoring that aspect of the “Palestinian voice” that those like Zeitoon say is being suppressed is irresponsible and dangerous, they claim.

Israel is justifiably quite concerned about the clear and present dangers posed by social media. Reports in the Hebrew press suggest that Prime Minister Benjamin Netanyahu even proposed blocking social media sites completely in Israel as the recent conflict began, in hopes of quelling incitement. Many have referred to the recent uptick in violence as the TikTok Intifada, a reference to the video-sharing social media network that is particularly popular among a younger demographic, and is widely seen as the source of some of the most intense incitement activity against Israel.

Facebook, as well as TikTok, categorically asserts that its automated content removal tools and human content moderators show no systemic bias toward any political cause or movement.

On that post by the Israeli activist mentioned above, Facebook Israel communications manager Maayan Sarig responded sharply. “We take criticism very seriously, but false claims against specific employees are not acceptable. Our policies are conducted globally in accordance with our community rules and there is no content that is independently approved or removed by individuals. So let’s try to avoid conspiracy theories.” That sort of statement is echoed throughout the company’s internal and external communications.

TikTok likewise has told the Post that “Safety is our top priority and we do not tolerate violence, hate speech or hateful behavior.”

It is not surprising that people on both sides of the conflict accuse social platforms of being biased against their cause. But, as is often the case online, the nuances easily get drowned out by strong emotions.

Read More

Continue Reading

FACEBOOK

Facebook & Instagram will now allow all users to hide their like counts

Published

on

By

<b>Facebook</b> & Instagram will now allow all users to hide their like counts thumbnail

facebook

Facebook and Instagram are giving more control to users over their content, feed and privacy. 

This week they announced new tools such as a Feed Filter Bar, Favourite Feed and Choose Who Can Comment, which aim to give people more ways to control what they see on their news feeds.

Facebook has been working on another new tool that allows users to filter offensive content from their DMS, and they have been testing hiding like counts over the past months. 

The hiding like counts tool is “beneficial for some and annoying to others”, says Facebook.

They added, “We’re giving you the option to hide like counts on all posts in your feed. You’ll also have the option to hide like counts on your own posts, so others can’t see how many likes your posts get. This way, if you like, you can focus on the photos and videos being shared, instead of how many likes posts get.”

According to Facebook, “changing the way people view like counts is a big shift.” 

(Image Credit: www.thoughtcatalog.com with an active link required)

Read More

Continue Reading

Trending