Tuesday, 13 February 2018

Explain Regular expression concepts



It is also expressed as regex. Regular expression is the backbone of form validation. We can validate any form elements using it. Both client side and server side elements can be validated using it. It is used in various programming or scripting language like PHP, JAVASCRIPT, PYTHON, PERL, etc.
It starts with carat(^) and end with dollor($) sign. E.g.
  1. /^[0-9]/ means starts with digit ie. 0 to 9, but end can be any thing.
  2. /[0-9]$/ means starting can be any character but it should end with digits.
  3. /^[0-9]$/ means starting with digit and end with digits.
Some characters are given special meaning within a regular expression, which we can not use directly, we have to use backslash if we have to use it literally. They are:
 .  *  ?  [  ]  (  )  {  }  ^  $  |  \ 
E.g. /^[a-z]+\?[a-z]+$/ Means starts with characters, separated by question mark(?), ends with characters. E.g. fb?chandra

Some shortcuts used in regular expression
We have to use digits, alphanumeric and space in many places during validation. So, we need some shortcuts which help to prevent our time.
ShortcutExpansionDescription
\d[0-9]Digits 0 to 9
\w[0-9A-Za-z_]A word character or alphanumeric
\s[ \t\n\r]White space character ie. Space, tab, newline or return


Shortcuts For Negative Or Inverse
ShortcutExpansionDescription
\D[^0-9]Non digits that not between 0 to 9
\W[^0-9A-Za-z_]Non word character or non alphanumeric ie. not contain digit, alphabet and underscore
\S[^ \t\n\r]Non white space character


Character class: [abc]
Characters surrounded by square bracket is known as character class. Any characters inclosed in square bracket is valid for that words. E.g. For regular expression Te[xs]t, both Text and Test is valid


OR Operator
Sometimes we have to use or operator in regex. We can use bitwise 'or' operator ie '|'. E.g. If we have to match either 'yes' or 'maybe', we can use the regex 'yes|maybe';


Qualifiers
Regex has three qualifiers symbols. They are
      + Means One or more characters. E.g. fb+chandra will matches fbchandra, fbbchandra, fbbbchandra, ....
      * Means No or any characters. E.g. fb*chandra will matches fchandra, fbchandra, fbbchandra, fbbbchandra, ....
      ? Means Yes or no characters. E.g. fb?chandra will matches either fchandra or fbchandra


Quantifiers
You have option to validate number of characters used.
[0-9]{1,4} -> Minimum 1 letter and maximum 4 letters
[0-9]{4} -> Only 4 letters
[0-9]{4,} -> Minimum 4 letters
[0-9]{,4} -> Maximum 4 letters


Examples
  1. Allow only digit. One or more digit
    Pattern: /^[0-9]+$/
  2. Allow both small and capital characters along with digits
    Pattern: /^[a-zA-Z0-9]+$/
  3. Allow both small and capital characters along with digits and some special characters like $%^&*
    Pattern: /^[a-zA-Z0-9%&\$\^\*]+$/

Visit for details
http://www.fbchandra.com/developers/regular-expression-concepts/

Sunday, 28 May 2017

Facebook Grace Hopper Scholarship for women

Facebook Grace Hopper Scholarship for women



Application open for Facebook Grace Hopper Scholarship
Facebook always tries to empower woman in technology. To empower woman, facebook is very excited to announce the 2017 Facebook Grace Hopper Women in Computing Scholarship.
Thousands of remarkable women in technology will join facebook at Orlando from October 4-6, 2017 for its tenth year at the Grace Hopper Celebration of Women in Computing. This unique scholarship program will be awarded to 50 women excelling in Computer Science. Each recipient will have the opportunity not only to attend the Celebration, but to spend valuable days before the conference with Facebook engineers learning, collaborating, and preparing for the conference.
Eligibility
  1. The scholarship is open to all women excelling in Computer Science globally (open for any woman all over the world).
  2. You have to currently be enrolled at an educational institution in order to qualify for the scholarship (high school through post-doc students are eligible).
Highlights of award
  1. Facebook will pay registration fees for Grace Hopper Celebration
  2. Paid travel and lodging, including a pre-Grace Hopper Celebration program in Orlando that includes tech talks, mentoring sessions and networking events from October 1-7, 2017.
  3. Additional meal stipend.
  4. An invitation to a private reception with Facebook's Engineering Team during the Grace Hopper Celebration.
  5. For international applicants: If you are selected, you would be responsible for your own travel visa. Facebook would cover travel expenses.
Important dates
  1. Wednesday, June 15th, 11:59pm PST - Applications for the Facebook Grace Hopper Celebration Scholarship must be submitted in full. If you made any mistake in application, you can edit it till last last of submission.
  2. Friday, July 15th - Award recipients will be notified by email of their acceptance by midnight PST.
  3. Sunday, October 1st - Saturday October 7th - Dates scholarship recipients must be available.
If you have any questions, you can contact facebook gracehopper team to gracehopper@fb.com
You can apply for this scholarship at https://www.facebook.com/careers/program/gracehopper2017/apply/
As per feedback from many women who get this scholarship last year, they got opportunity to placed in several gaint MNC. They feel lucky to meet the person about whom they heard in media. So you have lots of opportunity, if you able to get this scholarship.

See more information at http://www.fbchandra.com

Tuesday, 23 May 2017

Facebook Executives

Facebook Executives


Facebook is a social networking company where people connect to their family, friends and to whom they want. It was founded in 2004. Its headquarters is at 1 Hacker Way, Menlo Park, California 94025. It has around 18,770 employees working by March 31, 2017. Its office is located in several places in US and outside US. In India, it is located in Hyderabad, Mumbai and New Delhi.
Mark Zuckerberg

He is founder, chairman and CEO (Chief Executive Officer) of facebook. He studied computer science at Harvard University later on moved started his own company facebook. He is very dynamic in nature and is responsible for setting the overall direction and product strategy for the company. He leads facebook design and core technology.

Sheryl Sandberg

She is COO (Chief Operating Officer) of facebook. Prior to Facebook, Sheryl was vice president of Global Online Sales and Operations at Google, chief of staff for the United States Treasury Department under President Clinton, a management consultant with McKinsey & Company, and an economist with the World Bank.
Sheryl received a BA summa cum laude from Harvard University and an MBA with highest distinction from Harvard Business School.
Sheryl serves on the boards of Facebook, the Walt Disney Company, Women for Women International, ONE, and SurveyMonkey.

Mike Schroepfer

He is CTO (Chief Technology Officer) and Vice President of Engineering in facebook. He leads technology team which works very hard to connect people to their relatives and friends. Prior to Facebook, he was vice president of engineering at Mozilla Corporation, where he led the global and open product development process behind Firefox. Mike was formerly a distinguished engineer at Sun Microsystems, which acquired his company, CenterRun. He began his career working at various startups, including a digital effects software startup where he developed software that has been used in several major motion pictures. Mike holds a bachelor's degree and a master's degree in computer science from Stanford University and has filed two US patents.

Chris Cox

He is CPO (Chief Product Officer) in facebook. Chris joined Facebook in 2005 as a software engineer and helped build the first versions of key Facebook features, including News Feed. He then became director of human resources, where he set the tone for Facebook's culture and drove the development of its mission, values and people strategy.
Chris holds a bachelor's degree in symbolic systems with a concentration in artificial intelligence from Stanford University.

David Wehner

He is CFO (Chief Finance Officer), Vice President, Corporate Finance and Business Planning in facebook. He is responsible for core facebook product. Prior to becoming CFO in June 2014, Dave served as Facebook's vice president of Corporate Finance and Business Planning. From 2010 through 2012, Dave served as Chief Financial Officer of Zynga Inc. Before Zynga, Dave was a Managing Director at Allen & Company, an investment bank focused on media and technology, which he joined in 2001.
Dave holds a B.S. in Chemistry from Georgetown University, and a M.S. in Applied Physics from Stanford University.
 Find more post at http://www.fbchandra.com

Friday, 5 May 2017

Monkey man algorithm in PHP, who jumps and slip on wall

 

A monkey man caught inside a jail. He can jumps across the wall. He can jump 'X' meters, but due to slippery walls he falls 'Y' meters after each jump. To escape from jail, he has to cross 'N' number of walls, where height of each wall is given in an array.
Write a program to find total number of jumps, he has to make, to escape
Input Format
Your function will take three arguments, where:
Argument 1: An integer depicting X, which he can jump
Argument 2: An integer depicting Y, which he falls
Argument 3: An array of N integers having the height of each wall.
Constraints
1<=X<=109
1<=Y<=105
Output Format
Your program should return total number of jumps required to escape.

Sample Test Case
Test case 1
Sample Input 10 1 1 10
Sample Output 1
Explanation
Here monkey man can jump 10 meters high, but slides down by 1 meter. He has 1 wall to jump and the height of the wall is 10 meters. Since he jumps 10 meters in the first attempt he cross the wall easily in the first attempt only.
Test case 2
Sample Input 5 1 2 9 10
Sample Output 5
Explanation
Here, the monkey man can jump 5 meters high, but slides down by 1 meters. He has 2 walls to jump and the walls are 9 and 10 meters hight respectively.
While crossing the first wall, he takes 2 attempts, because during the first attempt he jumps 5 meters but slides down by 1 meters since he didn't cross the wall. In the next attempt he jumps 5 more meters from that position and this time he doesn't slide because he crossed the wall in this attempt because 4+5=9 and 9 meters is the actual height of the wall.
Similarly, while crossing the second wall, he takes 3 attempts because during his second attempt on this wall, he silides down by 1 meters since 4+5=9 and the height of the wall is 10 meters. During his third attempt, he was able to escape.


Solution
<?php
$x=5;
$y=1;
$z=array(9,10);
function jump($x,$y,$z) {
 $cnt=count($z);
 $cntjump=0;
 for($i=0;$i<$cnt;$i++) {
  $height=$z[$i];
  while($height>$x) {
   $height=$height-($x-$y);
   $cntjump++;   
  }
  $cntjump++;
 }
 return $cntjump;
}
$cnt = jump($x,$y,$z);
echo $cnt;
?>
Find more on http://www.fbchandra.com 







How to upload file using AJAX and PHP?

 

 

Simplest way to upload file is by using FormData. It is used in key/value pairs to send XMLHttpRequest. Initially FormData used to send all form elements data in key/value pair, but it can be used to send keyed data also. Data sent by FormData is in same format as used in form's submit() method. It sends upload data also, if we use multipart/form-data in form's encoding
index.html
<!Doctype HTML>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="main.js"></script>
</head>
<body>
<form name="frmUpdload" id="frmUpdload" method="POST" enctype="multipart/form-data">
 <input type="file" name="txtFile" class="txtFile" />
 <input type="submit" name="btnSubmit" value="Submit" />
</form>
</body>
</html>

main.js
$(document).ready(function() {
 $("form#frmUpdload").submit(function() {
  //Image validation start
  var file_name=$('.txtFile').val();
  var index_dot=file_name.lastIndexOf(".")+1;
  var ext=file_name.substr(index_dot);
  if(file_name=='') {
   alert('Please upload image');
  }
  else if(!(ext=='png' || ext=='jpg' || ext=='jpeg')) {
   alert('Please upload jpg or png image only');
  } //Image validation end
  else {
   //formdata object to send file upload data
   var formData = new FormData();
   formData.append('fileupload',$( '.txtFile' )[0].files[0], file_name);
   
   $.ajax({
    url: 'upload.php',
     data: formData,
     processData: false,
     contentType: false,
     type: 'POST',
     success: function(data){
     alert(data);
     }
   });
  }
  $('#frmUpdload')[0].reset();
  return false;
 });
});

upload.php
<?php
//print_r($_FILES); //Check all $_FILES variables
$files=$_FILES['fileupload'];
$tmp_name=$files['tmp_name'];
$name=$files['name'];
$destination=$name;
$res=move_uploaded_file($tmp_name, $destination);
if($res) {
 $msg='Uploaded successfully';
}
else {
 $msg='Error';
}
echo $msg;
?>
Find more post on http://www.fbchandra.com 

Monday, 10 April 2017

Tidy Numbers - Display all positive integers in ascending order

Tidy Numbers - Display all positive integers in ascending order


Ananya likes to keep things tidy. Her toys are sorted from smallest to largest and pencils are sorted from shortest to longest. One day, when practicing her counting skills, she noticed that some integers, have their digits sorted in non-decreasing order. She calls 8, 123, 555, and 224488 as numbers tidy. Numbers that do not have this property, like 20, 321, 495 and 999990, are not tidy.
She just finished counting all positive integers in ascending order from 1 to N. What was the last tidy number she counted?
Input
The first line of the input gives the number of test cases, T. T lines follow. Each line describes a test case with a single integer N, the last number counted by Ananya.
Output
For each test case, output is the last tidy number counted by Ananya.
1 ≤ T ≤ 100.
Sample Input:
5
132
1000
7
621
489
Sample Output:
129
999
7
599
489


Solutions :

<?php
$path="input.txt"; //File containing Input elements
$fh=fopen($path,"r");

function tidynum($fh) {
 $res='';
 fscanf($fh,"%d",$case); //$case gives no. of test cases
 for($j=0;$j<$case;$j++) { //Loop moves for total number of cases
  $no=fgets($fh); //Read each remaining element one by one
  $arr=str_split(trim($no)); //split number in array. 
  $cnt=count($arr); //Total number of elements in array
  if($cnt>1) { //If count is greater than one
   for($i=1;$i<$cnt;$i++) { //Loop until finishes the number
    $prev=$i-1; //Previous key
    if($arr[$prev]>$arr[$i]) { //Compare current key to previous key
     $no=$no-1;  //If previous key is greater than current. Substract given number by one
     $arr=str_split($no); //Again split the remaining number, and do same until number donot set in ascending order
     $cnt=count($arr);
     $i=0;
    }
   }
  }
  $res .=$no;
  $res .=PHP_EOL; //Used as end of line
 }
 return $res;
}
$res = tidynum($fh);
echo $res;
?>
Content in input.txt
5
132
1000
7
621
489

Find more algorithm solution in PHP at http://www.fbchandra.com

Wednesday, 5 April 2017

Apps of the year award by facebook

Apps of the year award by facebook


Happy news for mobile apps developers.
Facebook has started a global program FbStart to motivate mobile app startups. Facebook jury will give 'Apps of the Year Awards' to most successful startup for native mobile apps. Startup will get $160,000 in prize.
FbStart helps startup to grow their business through various tool and money. They give prize every year to motivate mobile app startups.
FbStart consider apps under following categories on the basis of performance of apps.
Track Basis
Bootstarp: When an app launched recently and it does not have lots of traffic.
Accelerate: When an app is working very good and fast but looking to scale it.
Package
Social Good Apps: Apps used for Non-profits and NGOs who cares people.
Games: Apps used for games

Prizes
  1. Apps of the Year Awards (Five winners): $160,000 in prizes to five companies worldwide.
  2. Global App of the Year (One winner): $100,000 ($50,000 in cash and $50,000 in Facebook advertising credit). It also include mentorship from facebook team to grow business.
  3. Regional App of the Year (three winners): $15,000 per winner ($7,500 in cash and $7,500 in Facebook advertising credit).
  4. Social Good App of the Year (One winner): $15,000 ($7,500 in cash and $7,500 in Facebook advertising credit).
Eligibility
  1. Only FbStart member is eligible to participate in this competition. If you are not a FbStart member you can apply at https://developers.facebook.com/fbstart/apply
  2. All apps must have used Facebook's developer tools, otherwise it will not be considered.
  3. Only native IOS and andriod mobile apps can apply for it.
  4. Regional finalist has to submit a video of 60-90 seconds for judges to review.
Jury Member
Each and every entries will be judged by esteemed panel of mobile development experts, investors, startup founders, and Facebook.
They judge entries on the following criteria:
  1. Growth and engagement: Is the app growing quickly? Has the app entered new markets, or done a good job retaining new users? Does the app demonstrate potential for growth?
  2. Experience and design: Is the design optimized for the best user experience? Does it have a streamlined look and feel?
  3. Efficiency at scale: How does the app use Facebook or other third-party tools to make app development and iteration efficient?
  4. Leveraging Facebook Platform: Are Facebook Developer products an integral part of the app? Do they improve any of the above three areas?
Deadline
  1. Submisstion starts on March 30, 2017
  2. If you are not a FbStart member, you must apply for FbStart by April 15, 2017 in order to be considered.
  3. When you became FbStart member, you can submit an application for Apps of the year . Submission deadline is on May 1, 2017 at 12:00 PM PST.
For more details go to http://fbchandra.com

Friday, 17 February 2017

F8, 2017 facebook developer conference coming soon





F8 is facebook developer conference organised at San jose, California on 18th and 19th April 2017. It is 2 day event for both developers and business leaders. They learn about advance features of technology like AI (Artificial Intelligence), virtual reality, camera and various other.
Join us for our annual 2-day event, where developers and businesses come together to explore the future of technology. Learn how Facebook connects the world through new products and innovation. This year's event is bigger than ever - with more than 50 sessions, interactive experiences, and the opportunity to meet one-on-one with members of the Facebook team.
You can register to attend it on https://www.fbf8.com/registration. If you are unable to attend it in San Jose, California, you can still register and make online experience


ADDRESS
San Jose McEnery Convention Center 365 S Market St. San Jose, CA
facebook has collabrations to various hotels to stay who come for conference. Its cost lies between $239 to $319 approx.
SCHEDULE
Date: 18th April 2017
TimeEvents
8 AM - 10 AMRegistration & Breakfast
10 AM - 11:30 AMKeynote
11:30 AM - 12:30 AMLunch
12:30 PM - 5 PMSessions
5 PM - 6 PMHappy Hour
6 PM - Party endsParty


Date: 19th April 2017
TimeEvents
8 AM - 10 AMRegistration & Breakfast
10 AM - 11:30 AMKeynote
11:30 AM - 12:30 AMLunch
12:30 PM - 4 PMSessions
You can find more details of events at https://www.fbf8.com/schedule
Visa Issue
You can email on registration@fbf8.com for visa letters. It is available only to registered attendees.
You have to mention following details in mail
Full name
Address of residence
Dates of travel to the US
Job title or degree of study
Employer or University and address
Clear scan of passport photo page
 
Find more news on http://www.fbchandra.com

Wednesday, 25 January 2017

How to download BPSC PT exam admit card (60th to 62th) combined examination

Lots of people are facing problem to download BPSC 60th to 62th combined examination admit card as they are not getting proper link to download admit card.

You can download admit card by using same steps, that you follow to fill application form.

Follow following steps to download admit card

1. Go to  http://bpsc.bih.nic.in/Application.htm
2. Click link 'B.P.S.C. Online Application'.
3. You will be redirected to login form.
4. Enter your user name and password which you used at the time of registration.
5. You will land into Dashboard page.
6. In right side you will get link to download admit card.


Please be hurry, as per BPSC website, 31st Jan is the last day to download admit card.




http://www.fbchandra.com

Saturday, 24 September 2016

Los Lunas, New Mexico, Facebook newest Data Center




Facebook and New Mexico Governor has officially announced on Wednesday, september 14,2016 that social media giant plans to open the next data center in Los Lunas, New Mexico. A statement from Facebook said that they plan to start construction of 510,000 sq-foot center as early as next month and the facility should be online in 2018.
When the Los Lunas facility opens, it will join other data centers that Facebook has opened over the years, including Clonee, Ireland (which should open by late 2017 or early 2018); Fort Worth, Texas; Altoona, Iowa; Forest City, North Carolina; Lulea, Sweden; and the original site in Prineville, Oregon. Los Lunas data center will be seventh data center globally and fifth in US
Ken Patchett, Facebook's director of data center operations in the western region, wrote in a post that the Los Lunas facility will be "one of the most advanced, energy-efficient data centers in the world" and that the company is teaming with PNM Resources to leverage New Mexico's solar and wind energy to power the data center. "By powering our data center with renewable energy versus natural gas, we also reduce the water usage associated with the data center by 30 percent," he said. "The new solar and wind farms also bring additional jobs and investments to the region."

According to a statement from Gov. Susana Martinez's office, Facebook will make an initial $250 million investment. State officials believe the project has long-term economic benefits.
"This was an incredibly intense national search, in which to locate their facility, and the fact that New Mexico won this, speaks volumes about where we have come in the last six years," said Jon Barela, New Mexico Economic Development Department Cabinet Secretary.
Los Lunas agreed to give up property taxes for 30 years in exchange for annual payments from Facebook starting at $50,000 and going as high as $500,000. The village council in June also approved an ordinance allowing for the issuance of up to $30 billion in industrial revenue bonds to lure the facility to Los Lunas.
The proposed $250 million data center is expected to span 850 acres and use at least 30 megawatts of solar and wind power to fuel technology at the site with the potential to expand to 100 megawatts in the coming years. Facebook also has committed to a minimum of 30 full-time workers in Los Lunas, with the potential for thousands more during the construction phase and a promise to source workers and materials locally.
Governor Susana Martinez released this statement on the decision:
"Facebook is a stellar, cutting-edge, high-tech company, and it's an honor to welcome them to New Mexico," said Governor Martinez. "Making our state more competitive for jobs and new investment is critical to growing our private sector and diversifying our economy. With the improvements we've made over the past several years, New Mexico is finally competing again, and in this case, it's a big win for the people of our state and our economic future.When we first sat down with Facebook executives 13 months ago, we weren't even on their radar. But we made a strong case and laid out how competitive we have become," continued Governor Martinez. "Two months later, we got the call and went straight to work. We competed. And, by working together at all levels of government, and with private partners like PNM, we have helped make New Mexico a home for one of the largest tech companies in the world."
Martinez attributed this to her efforts in creating a business-friendly administration by lowering business taxes, creating corporate incentives and developing a closing fund.
After initially competing with New Mexico for the Facebook center, Utah officials and residents raised concerns late this summer about the amount of water the center would require to cool its computers and the cost of tax breaks. Facebok didn't release proper statistcs on projected water usage, but company said it is expected to be "far less" than the "theoretical maximum quoted publicity". During winter, it said "New Mexico's cool temperatures and dry weather will mean the data center will consume very little water in comparison to hot, humid days".

Saturday, 17 September 2016

Facebook updates Messenger Platform: v1.2

After launching the Messenger Platform few months ago, millions of people in over 200 countries have been engaging with businesses on Messenger each day in new and exciting ways - from better customer service, to more sophisticated brand and commerce experiences, and receiving news from trusted sources.
Facebook today enhanced its Messenger platform by integrating its payment mechanisms for chatbots with the most popular financial service providers. During an onstage interview atTechCrunch Disrupt SF, Facebook vice president and Head of Messenger David Marcus said you will now be able to make payments from inside Messenger using Visa, MasterCard, American Express, Stripe, PayPal or Braintree.
When Facebook announced its bot platform in April the company highlighted the capability to make travel arrangements and retail purchases from within Messenger without redirecting to the another payment related websites. Facebook is trying to build an ecosystem that enables the fundamental things such as one-to-one messaging, group conversations and the capability to interact with business. For the last six months Facebook invested a lot in the focus of Messenger's performance, real time communications and instant video calling.
Marcus dismissed the notion that bots are a fad, and said Facebook is committed to making sure they eventually live up to the hype. "It's not about bots, it's about how can you get an experience" by interacting with people, services, brands and businesses,he said.
Messenger attracted more than 34,000 new developers during the past five months, and at least 30,000 related bots were released, according to Facebook.
Finally, what will Messenger look like five years from now? "When you look at all of these entities that you interact with, it's bringing it all together," Marcus said. "Can you bring your daily life on Messenger in a more organized way, and actually have the best high quality, high fidelity interactions with people, groups of people, businesses, services and give an opportunity for developers to build a presence on a new platform and get distribution and adoption."

Facebook announced the launch of v1.2 which is containing the several new features, the most important is the ability for brands to accept payments directly via the application. The Other major feature launch is the ability for brands to use News Feed ads on Facebook to drive users to Messangers via calls to action such as "send message", "shop now" or "learn more".
Other new features in Messenger Platform v1.2 include:
  1. The addition of more user interface elements to Messenger threads between brands and users.
  2. Users can now share individual messages from bots or links to the actual bots themselves via Messenger.
  3. The new welcome screen for pages and bots on Messenger provides more context for users.
  4. Quick replies were updated to include elements such as location sharing and icons.
  5. App-level analytics, including error and block rates, can now be downloaded in .CSV form via in-app settings.
  6. The same attachment can be reused on subsequent media sends, enabling brands to broadcast and slashing the send times for multimedia.
All clicks on these News Feed ads will directly open up a Messenger thread with a copy of the ad or configurable structured message. Similar to existing Facebook ads, developers and businesses will have the option to select their target audiences and delivery times. More enhanced UI were addressed in the Newsroom post. With this update, we're giving developers and businesses the ability to bring more UI elements inside the threads they have with their customers and users, because while some interactions are better in a conversational format (like quick responses or intent capture), and some things are better suited for a permanent thread (like receipts, shipping notifications and flight updates), some experiences are truly better with a full-fledged UI.
New Welcome Screeen for pages and bots :
When people start a new thread with your bot in the Messenger app, they will now be greeted with a welcome screen to provide more information about the bot, including the category of the associated page, response time and capabilities provided on Messenger. This will help provide details about the bot experience.


New Sharing Capabilities :
We're enabling seamless sharing of bots and messages from bots to friends on Messenger. People can share any message with friends using the standard Messenger share button next to the message. People can also share bots with their friends using a share option in thread details of the bot thread. All shared messages will include the bot icon, name and call to action that allows people to start a thread with the associated bot.

Roenberg wrote that receipients must avail the subscription messaging. He outlined the following use cases that are eligible for the test of subscription messaging:
News: Bots whose primary purpose is to inform people about recent or important events or information in categories such as sports, finance, business, real estate, weather, traffic, politics and entertainment.
Productivity: Bots whose primary purpose is to enable people to manage their personal productivity with tasks such as managing calendar events, receiving reminders and paying bills.
Personal trackers: Bots that enable people to receive and monitor information about themselves in categories such as fitness, health, wellness and finance.